mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
compatibility with wxWdigets 2.9+: Vector2D::operator *(int) to prevent ambiguous conversion errors
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1530 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -61,6 +61,9 @@ class Vector2D {
|
||||
inline Vector2D operator * (double r) const {
|
||||
return Vector2D(x * r, y * r);
|
||||
}
|
||||
inline Vector2D operator * (int r) const {
|
||||
return Vector2D(x * r, y * r);
|
||||
}
|
||||
/// Multiply with a scalar
|
||||
inline void operator *= (double r) {
|
||||
x *= r; y *= r;
|
||||
|
||||
Reference in New Issue
Block a user