From 9d7fd8b37f97265f37cc12026e535e953942a1ab Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Wed, 23 Jul 2014 18:37:53 -0700 Subject: Move magic to its own namespace --- src/map/map.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/map/map.cpp') diff --git a/src/map/map.cpp b/src/map/map.cpp index 832e6aa..4a25029 100644 --- a/src/map/map.cpp +++ b/src/map/map.cpp @@ -1624,7 +1624,7 @@ void cleanup_sub(dumb_ptr bl) map_clearflooritem(bl->bl_id); break; case BL::SPELL: - spell_free_invocation(bl->is_spell()); + magic::spell_free_invocation(bl->is_spell()); break; } } @@ -1686,7 +1686,7 @@ bool map_confs(XString key, ZString value) if (key == "skill_db"_s) return skill_readdb(value); if (key == "magic_conf"_s) - return load_magic_file_v2(value); + return magic::load_magic_file_v2(value); if (key == "resnametable"_s) return load_resnametable(value); @@ -1703,7 +1703,7 @@ bool map_confs(XString key, ZString value) int do_init(Slice argv) { ZString argv0 = argv.pop_front(); - runflag &= magic_init0(); + runflag &= magic::magic_init0(); bool loaded_config_yet = false; while (argv) @@ -1784,7 +1784,7 @@ int map_scriptcont(dumb_ptr sd, BlockId id) case BL::NPC: return npc_scriptcont(sd, id); case BL::SPELL: - spell_execute_script(bl->is_spell()); + magic::spell_execute_script(bl->is_spell()); break; } -- cgit v1.2.3-70-g09d2