Fix the issue where tons of special points appear outdoors

This commit is contained in:
2014-04-18 21:41:15 -04:00
parent 3b00392e99
commit ba8201d07c
4 changed files with 9 additions and 11 deletions

View File

@@ -93,12 +93,13 @@ location global_to_local(location global)
location local;
local = global;
if (univ.party.i_w_c.x == 1)
if(global.x >= 48)
local.x = local.x - 48;
if (univ.party.i_w_c.y == 1)
if(global.y >= 48)
local.y = local.y - 48;
return local;
}
// TODO: I fixed the above function, but it's impossible to fix this one without adding a parameter (which would be i_w_c)
location local_to_global(location local)
{
location global;