diff options
author | Treeki <treeki@gmail.com> | 2012-09-16 04:59:03 +0200 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2012-09-16 04:59:03 +0200 |
commit | 7404c596e96bf18f458f10fb8f23ca6e1a25ca7d (patch) | |
tree | 4fcdf733873a6d74b13a986c98b6f845dd0ad3ca /src/spriteswapper.cpp | |
parent | 8102791c2222c31d80858cd1d12b208dcd4ecbc3 (diff) | |
download | kamek-7404c596e96bf18f458f10fb8f23ca6e1a25ca7d.tar.gz kamek-7404c596e96bf18f458f10fb8f23ca6e1a25ca7d.zip |
go speed! a terrible hack to make builds far faster
Diffstat (limited to 'src/spriteswapper.cpp')
-rwxr-xr-x | src/spriteswapper.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/spriteswapper.cpp b/src/spriteswapper.cpp index 89ead56..3fc78e0 100755 --- a/src/spriteswapper.cpp +++ b/src/spriteswapper.cpp @@ -16,19 +16,12 @@ public: u32 timer; }; -struct EventTable_t { - u64 events; -}; - SpriteSpawnerTimed *SpriteSpawnerTimed::build() { void *buffer = AllocFromGameHeap1(sizeof(SpriteSpawnerTimed)); return new(buffer) SpriteSpawnerTimed; } -extern EventTable_t *EventTable; -extern "C" dStageActor_c *CreateActor(u16 classID, int settings, Vec pos, char rot, char layer); - int SpriteSpawnerTimed::onCreate() { @@ -48,7 +41,7 @@ int SpriteSpawnerTimed::onCreate() { int SpriteSpawnerTimed::onExecute() { - if (EventTable->events & this->eventFlag) { // If the event is on + if (dFlagMgr_c::instance->flags & this->eventFlag) { // If the event is on if (this->timer < 1) { // If the timer is empty CreateActor(this->type, this->inheritSet, this->pos, 0, 0); this->timer = 120; @@ -62,4 +55,4 @@ int SpriteSpawnerTimed::onExecute() { } return true; -}
\ No newline at end of file +} |