diff options
author | James Brown | 2002-05-14 18:14:16 +0000 |
---|---|---|
committer | James Brown | 2002-05-14 18:14:16 +0000 |
commit | a592de43330c4ab1162b83599e12e70696cb661c (patch) | |
tree | 4d6d4b0296fdb2fa34ae89fec6925a766f29506c /simon | |
parent | b5a8bb6b2a3e8ae28ca4cee1464395cb6302acb7 (diff) | |
download | scummvm-rg350-a592de43330c4ab1162b83599e12e70696cb661c.tar.gz scummvm-rg350-a592de43330c4ab1162b83599e12e70696cb661c.tar.bz2 scummvm-rg350-a592de43330c4ab1162b83599e12e70696cb661c.zip |
Remove SCUMM dependancies from SDL.C - This fixes a regular crash in Simon due to the autosaver.
This changes the OSystem interface. Porters beware.
svn-id: r4318
Diffstat (limited to 'simon')
-rw-r--r-- | simon/simon.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/simon/simon.h b/simon/simon.h index 9f8801b6a6..464d4fe23a 100644 --- a/simon/simon.h +++ b/simon/simon.h @@ -47,11 +47,6 @@ void fileWriteBE16(FILE *in, uint16 value); #define ARRAYSIZE(x) (sizeof(x)/sizeof(x[0])) #define CHECK_BOUNDS(x,y) assert((uint)(x)<ARRAYSIZE(y)) -enum { - CHILD1_SIZE = 12, - CHILD2_SIZE = 16 -}; - struct Child { Child *next; uint16 type; @@ -87,6 +82,10 @@ struct ThreeValues { uint16 a, b, c; }; +enum { + CHILD1_SIZE = sizeof(Child1) - sizeof(uint16), + CHILD2_SIZE = sizeof(Child2) - sizeof(int16) +}; struct Item { uint16 parent; |