From a9bb5be49d8b6b26a78b315aceeed972554b46dc Mon Sep 17 00:00:00 2001 From: truelight Date: Thu, 23 Dec 2004 14:46:16 +0000 Subject: (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' --- functions.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'functions.h') 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; } -- cgit v1.2.3-54-g00ecf