diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2012-08-30 17:37:27 -0700 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2012-09-03 16:23:10 -0700 |
commit | 31544d2b6973931be7fdec898ea3672bea831de2 (patch) | |
tree | dcf946429b406f39297404be662b0a840094e477 /src/map/magic-interpreter.hpp | |
parent | 41974ae5265fbc23a06f276f9e008d5dad020e0b (diff) | |
download | tmwa-31544d2b6973931be7fdec898ea3672bea831de2.tar.gz tmwa-31544d2b6973931be7fdec898ea3672bea831de2.tar.bz2 tmwa-31544d2b6973931be7fdec898ea3672bea831de2.tar.xz tmwa-31544d2b6973931be7fdec898ea3672bea831de2.zip |
Fix compiler errors of C++ conversion
Diffstat (limited to 'src/map/magic-interpreter.hpp')
-rw-r--r-- | src/map/magic-interpreter.hpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/map/magic-interpreter.hpp b/src/map/magic-interpreter.hpp index e040975..21e8d39 100644 --- a/src/map/magic-interpreter.hpp +++ b/src/map/magic-interpreter.hpp @@ -226,7 +226,7 @@ typedef struct effect struct effect *true_branch, *false_branch; } e_if; expr_t *e_sleep; /* sleep time */ - unsigned char *e_script; + const ScriptCode *e_script; struct { int id; @@ -497,4 +497,8 @@ typedef struct effect_t *body; } proc_t; +// must be called after itemdb initialisation +int magic_init(const char *); +void spell_update_location (invocation_t * invocation); + #endif /* !defined (MAGIC_INTERPRETER_H) */ |