diff options
Diffstat (limited to 'functions.h')
-rw-r--r-- | functions.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/functions.h b/functions.h index 03b5a9530..2feefc8e2 100644 --- a/functions.h +++ b/functions.h @@ -38,9 +38,13 @@ bool IsValidTile(uint tile); static inline Point RemapCoords(int x, int y, int z) { #if !defined(NEW_ROTATION) - Point pt = { (y - x) * 2, y + x - z }; + Point pt; + pt.x = (y - x) * 2; + pt.y = y + x - z; #else - Point pt = { (x + y) * 2, x - y - z }; + Point pt; + pt.x = (x + y) * 2; + pt.y = x - y - z; #endif return pt; } |