summaryrefslogtreecommitdiff
path: root/src/bossBombDrop.cpp
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2013-02-12 02:20:23 +0100
committerTreeki <treeki@gmail.com>2013-02-12 02:20:23 +0100
commit629307bf47f6b7097128352999bd789cfeb93402 (patch)
treefde3b412a563a1768a38de7936a751b45dc9fe2e /src/bossBombDrop.cpp
parentbcedcedeba831e4b5199303ccbf565a0f1be170f (diff)
downloadkamek-629307bf47f6b7097128352999bd789cfeb93402.tar.gz
kamek-629307bf47f6b7097128352999bd789cfeb93402.zip
lotsa fixes and updates to the final battle
Diffstat (limited to '')
-rw-r--r--src/bossBombDrop.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/bossBombDrop.cpp b/src/bossBombDrop.cpp
index b8e4204..f96c557 100644
--- a/src/bossBombDrop.cpp
+++ b/src/bossBombDrop.cpp
@@ -199,6 +199,8 @@ dBombDrop *dBombDrop::build() {
}
+bool HackyBombDropVariable = false;
+
int dBombDrop::onCreate() {
int t = this->settings & 0xF;
@@ -215,11 +217,12 @@ int dBombDrop::onCreate() {
dFlagMgr_c::instance->set(eventA, 0, false, false, false);
dFlagMgr_c::instance->set(eventB, 0, false, false, false);
+
+ HackyBombDropVariable = false;
return true;
}
-
int dBombDrop::onDelete() { return true; }
int dBombDrop::onDraw() { return true; }
@@ -230,6 +233,7 @@ int dBombDrop::onExecute() {
active = dFlagMgr_c::instance->active(eventA);
if (active) {
create(WM_SMALLCLOUD, 0, &pos , &rot, 0);
+ HackyBombDropVariable = true;
dFlagMgr_c::instance->set(eventA, 0, false, false, false);
dFlagMgr_c::instance->set(eventA+1, 0, true, false, false);
}
@@ -237,6 +241,7 @@ int dBombDrop::onExecute() {
active = dFlagMgr_c::instance->active(eventB);
if (active) {
create(WM_SMALLCLOUD, 0, &pos, &rot, 0);
+ HackyBombDropVariable = true;
dFlagMgr_c::instance->set(eventB, 0, false, false, false);
dFlagMgr_c::instance->set(eventB+1, 0, true, false, false);
}