From 140ec674a040bdc04086472330a289c2d15ecc65 Mon Sep 17 00:00:00 2001 From: maximius Date: Mon, 14 Sep 2009 16:49:23 -0700 Subject: Backed out changeset d3fe2d6d504a (please test your patches thoroughly before getting me to push them ogeraisi) --HG-- branch : trunk --- src/game/Level1.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/game/Level1.cpp') diff --git a/src/game/Level1.cpp b/src/game/Level1.cpp index f9adcf1dbaf..2f0579b3d1d 100644 --- a/src/game/Level1.cpp +++ b/src/game/Level1.cpp @@ -2736,7 +2736,7 @@ bool ChatHandler::HandleGoTaxinodeCommand(const char* args) return false; } - if ((node->x == 0.0f && node->y == 0.0f && node->z == 0.0f) || + if (node->x == 0.0f && node->y == 0.0f && node->z == 0.0f || !MapManager::IsValidMapCoord(node->map_id,node->x,node->y,node->z)) { PSendSysMessage(LANG_INVALID_TARGET_COORD,node->x,node->y,node->map_id); @@ -2873,7 +2873,7 @@ bool ChatHandler::HandleGoZoneXYCommand(const char* args) float y = (float)atof(py); // prevent accept wrong numeric args - if ((x==0.0f && *px!='0') || (y==0.0f && *py!='0')) + if (x==0.0f && *px!='0' || y==0.0f && *py!='0') return false; uint32 areaid = cAreaId ? (uint32)atoi(cAreaId) : _player->GetZoneId(); -- cgit v1.2.3