diff options
author | Max Horn | 2004-04-25 14:42:14 +0000 |
---|---|---|
committer | Max Horn | 2004-04-25 14:42:14 +0000 |
commit | d4f876b37df0fdc772936eedf9b112802987254b (patch) | |
tree | c7e782e5846dd153159c574ca9cb2ca250dfd34f /saga/events_mod.h | |
parent | f9cd78cedd48371f8aa9d98cbcdeb879fe543fac (diff) | |
download | scummvm-rg350-d4f876b37df0fdc772936eedf9b112802987254b.tar.gz scummvm-rg350-d4f876b37df0fdc772936eedf9b112802987254b.tar.bz2 scummvm-rg350-d4f876b37df0fdc772936eedf9b112802987254b.zip |
Fix many warnings; use C++ type system instead of C style typedefs; removed various unused stuff; const correctness; etc.
svn-id: r13622
Diffstat (limited to 'saga/events_mod.h')
-rw-r--r-- | saga/events_mod.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/saga/events_mod.h b/saga/events_mod.h index e086d37c2d..2c7fb134a2 100644 --- a/saga/events_mod.h +++ b/saga/events_mod.h @@ -104,7 +104,7 @@ enum R_EVENT_PARAMS { SET_PALETTE }; -typedef struct R_EVENT_tag { +struct R_EVENT { unsigned int type; unsigned int code; /* Event operation category & flags */ @@ -119,10 +119,12 @@ typedef struct R_EVENT_tag { long duration; /* Duration of event */ long d_reserved; - struct R_EVENT_tag *chain; /* Event chain + R_EVENT *chain; /* Event chain * (For consecutive events) */ -} R_EVENT; + R_EVENT() { memset(this, 0, sizeof(*this)); } + +}; int EVENT_Init(void); |