ProtectionAreas: Fixed area reloading
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1574 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
@@ -186,14 +186,14 @@ function cStorage:LoadPlayerAreas(a_PlayerName, a_PlayerX, a_PlayerZ, a_WorldNam
|
||||
assert(a_WorldName);
|
||||
assert(self);
|
||||
|
||||
res = cPlayerAreas:new();
|
||||
|
||||
-- Bounds for which the areas are loaded
|
||||
local BoundsMinX = a_PlayerX - g_AreaBounds;
|
||||
local BoundsMaxX = a_PlayerX + g_AreaBounds;
|
||||
local BoundsMinZ = a_PlayerZ - g_AreaBounds;
|
||||
local BoundsMaxZ = a_PlayerZ + g_AreaBounds;
|
||||
|
||||
local res = cPlayerAreas:new();
|
||||
|
||||
-- Load the areas from the DB, based on the player's location
|
||||
local sql =
|
||||
"SELECT ID, MinX, MaxX, MinZ, MaxZ FROM Areas WHERE " ..
|
||||
|
||||
Reference in New Issue
Block a user