summaryrefslogtreecommitdiff
path: root/src/effects.cpp
diff options
context:
space:
mode:
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;