summaryrefslogtreecommitdiff
path: root/functions.h
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2004-12-23 14:46:16 +0000
committertruelight <truelight@openttd.org>2004-12-23 14:46:16 +0000
commita9bb5be49d8b6b26a78b315aceeed972554b46dc (patch)
tree70df1e5fa1346ddc8214906f90ce7ff391e41e98 /functions.h
parentd91326fb4ae64a06dc08458c157b83f3197b5d9c (diff)
downloadopenttd-a9bb5be49d8b6b26a78b315aceeed972554b46dc.tar.xz
(svn r1248) -Add: initial OS/2 support (read docs/ReadMe_OS2.txt) (orudge)
Works fine, beside some minor stuff: - Network is not working yet - Keyboard is not working - No MIDI support - 'A few file selector bugs involving drives'
Diffstat (limited to 'functions.h')
-rw-r--r--functions.h8
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;
}