summaryrefslogtreecommitdiff
path: root/src/effects.cpp
diff options
context:
space:
mode:
authorStephen Simpson <megazig@gmail.com>2011-10-14 00:35:39 -0500
committerStephen Simpson <megazig@gmail.com>2011-10-14 00:35:39 -0500
commit1897a8a60cec5bf43bf5cf04cc6b188138aed3ee (patch)
tree8b075ca427fce385425c5d530e3a3074eaeb9279 /src/effects.cpp
parentb3c762b06e3238208ba54651545ca51b23e008c9 (diff)
parent48713b7a405c95022e85f4cf5ce7c27363815d74 (diff)
downloadkamek-1897a8a60cec5bf43bf5cf04cc6b188138aed3ee.tar.gz
kamek-1897a8a60cec5bf43bf5cf04cc6b188138aed3ee.zip
Merge branch 'megaTestBoss' into level-select
Diffstat (limited to 'src/effects.cpp')
-rw-r--r--src/effects.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/effects.cpp b/src/effects.cpp
index 40f08a2..3b2d5c7 100644
--- a/src/effects.cpp
+++ b/src/effects.cpp
@@ -1041,6 +1041,15 @@ bool CreateEffect(const char* name, Vec* pos) {
return SpawnEffect(name, 0, pos, 0, 0);
}
+bool CreateEffect(int effect_num, Vec* pos, S16Vec* rot, Vec* scale) {
+ 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, 0, pos, rot, scale);
+}
+
/*
void* CustomEffectSpawn(const char* name) {
// FILL ME IN