summaryrefslogtreecommitdiff
path: root/src/map/npc-parse.cpp
diff options
context:
space:
mode:
authormekolat <mekolat@users.noreply.github.com>2015-09-10 22:30:23 -0400
committermekolat <mekolat@users.noreply.github.com>2016-04-15 11:46:39 -0400
commit4cb881c88f5e1879e89ab2c830a622a2edfb0f82 (patch)
tree6f7dcf8a338fbf4bfac846c1ce7bf31da16672ea /src/map/npc-parse.cpp
parentf3dd34b5172f2bcb4f79d472e4c8ba2dbfe9cce0 (diff)
downloadtmwa-4cb881c88f5e1879e89ab2c830a622a2edfb0f82.tar.gz
tmwa-4cb881c88f5e1879e89ab2c830a622a2edfb0f82.tar.bz2
tmwa-4cb881c88f5e1879e89ab2c830a622a2edfb0f82.tar.xz
tmwa-4cb881c88f5e1879e89ab2c830a622a2edfb0f82.zip
do not bind trigger detection to map cells
Diffstat (limited to 'src/map/npc-parse.cpp')
-rw-r--r--src/map/npc-parse.cpp30
1 files changed, 0 insertions, 30 deletions
diff --git a/src/map/npc-parse.cpp b/src/map/npc-parse.cpp
index edfe4c9..e30225a 100644
--- a/src/map/npc-parse.cpp
+++ b/src/map/npc-parse.cpp
@@ -166,21 +166,6 @@ bool npc_load_warp(ast::npc::Warp& warp)
nd->warp.xs = xs;
nd->warp.ys = ys;
- for (int i = 0; i < ys; i++)
- {
- for (int j = 0; j < xs; j++)
- {
- int x_lo = x - xs / 2;
- int y_lo = y - ys / 2;
- int xc = x_lo + j;
- int yc = y_lo + i;
- MapCell t = map_getcell(m, xc, yc);
- if (bool(t & MapCell::UNWALKABLE))
- continue;
- map_setcell(m, xc, yc, t | MapCell::NPC_NEAR);
- }
- }
-
npc_warp++;
nd->bl_type = BL::NPC;
nd->npc_subtype = NpcSubtype::WARP;
@@ -554,21 +539,6 @@ bool npc_load_script_map(ast::script::ScriptBody& body, ast::npc::ScriptMap& scr
int xs = script_map.xs.data, ys = script_map.ys.data;
{
- for (int i = 0; i < ys; i++)
- {
- for (int j = 0; j < xs; j++)
- {
- int x_lo = x - xs / 2;
- int y_lo = y - ys / 2;
- int xc = x_lo + j;
- int yc = y_lo + i;
- MapCell t = map_getcell(m, xc, yc);
- if (bool(t & MapCell::UNWALKABLE))
- continue;
- map_setcell(m, xc, yc, t | MapCell::NPC_NEAR);
- }
- }
-
nd->scr.xs = xs;
nd->scr.ys = ys;
nd->scr.event_needs_map = true;