Eluna Removed mutex lock and forced only one map update thread to be used. Made returning more arguments than pushed to return the return amount of nils instead. Removed a few hooks

This commit is contained in:
Rochet2
2014-05-14 12:48:00 +03:00
committed by Foereaper
parent f166732b49
commit 94063c1b7d
15 changed files with 117 additions and 313 deletions

View File

@@ -71,9 +71,8 @@ namespace LuaMap
uint32 phasemask = sEluna->CHECKVAL<uint32>(L, 4, 1);
float z = map->GetHeight(phasemask, x, y, MAX_HEIGHT);
#endif
if (z == INVALID_HEIGHT)
return 0;
sEluna->Push(L, z);
if (z != INVALID_HEIGHT)
sEluna->Push(L, z);
return 1;
}