Refactor opcodes in Objects.cpp

- Added missing argument type checks
- Replace asm blocks with wrapper function calls
- Use GameObject instead of DWORD
This commit is contained in:
phobos2077
2017-04-03 23:27:33 +07:00
parent 116c522bdc
commit e2a383511d
4 changed files with 35 additions and 69 deletions
+1 -1
View File
@@ -213,7 +213,7 @@
#define exec_map_update_scripts sfall_func0("exec_map_update_scripts")
#define set_outline(obj, color) sfall_func2("set_outline", obj, color)
#define get_outline(obj) sfall_func1("get_outline", obj)
#define set_flags(obj, color) sfall_func2("set_flags", obj, color)
#define set_flags(obj, flags) sfall_func2("set_flags", obj, flags)
#define get_flags(obj) sfall_func1("get_flags", obj)
#define tile_refresh_display sfall_func0("tile_refresh_display")
#define outlined_object sfall_func0("outlined_object")