summaryrefslogtreecommitdiff
path: root/src/effects.cpp
diff options
context:
space:
mode:
authorColin Noga <Tempus@chronometry.ca>2012-02-23 21:53:39 -0600
committerColin Noga <Tempus@chronometry.ca>2012-02-23 21:53:39 -0600
commitbc5140686e182ea63ee569ef29fe5a2de9f38578 (patch)
tree0bff0b3544aaf56ec14c7f425415dfab91fbb423 /src/effects.cpp
parentfc6395da2787175e1daf55771975ac0af9d2bd9e (diff)
downloadkamek-bc5140686e182ea63ee569ef29fe5a2de9f38578.tar.gz
kamek-bc5140686e182ea63ee569ef29fe5a2de9f38578.zip
Shy Guy and some other changes
Diffstat (limited to '')
-rw-r--r--src/effects.cpp17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/effects.cpp b/src/effects.cpp
index 3b2d5c7..c54678c 100644
--- a/src/effects.cpp
+++ b/src/effects.cpp
@@ -1012,7 +1012,7 @@ bool CreateEffect(dEn_c* enemy, int effect_num) {
return false;
if (effect_num < 0)
return false;
- Vec tempVec = (Vec){ enemy->pos.x, enemy->pos.y, 5500.0 };
+ Vec tempVec = (Vec){ enemy->pos.x, enemy->pos.y, enemy->pos.z };
const char* effect_name = effects_name_list[effect_num];
return SpawnEffect(effect_name, 0, &tempVec, 0, 0);
}
@@ -1022,7 +1022,7 @@ bool CreateEffect(Vec* pos, S16Vec* rot, Vec* scale, int effect_num) {
return false;
if (effect_num < 0)
return false;
- Vec tempVec = (Vec){ pos->x, pos->y, 5500.0 };
+ Vec tempVec = (Vec){ pos->x, pos->y, pos->z };
const char* effect_name = effects_name_list[effect_num];
return SpawnEffect(effect_name, 0, &tempVec, rot, scale);
}
@@ -1041,6 +1041,19 @@ bool CreateEffect(const char* name, Vec* pos) {
return SpawnEffect(name, 0, pos, 0, 0);
}
+bool CreateEffect(int effect_num, Vec* pos, int leng) {
+ //check effects name list
+ bool exists = false;
+ if (effect_num > 1000)
+ return false;
+ if (effect_num < 0)
+ return false;
+
+ const char* effect_name = effects_name_list[effect_num];
+
+ return SpawnEffect(effect_name, leng, pos, 0, 0);
+}
+
bool CreateEffect(int effect_num, Vec* pos, S16Vec* rot, Vec* scale) {
if (effect_num > 1000)
return false;