diff options
| author | maximius <none@none> | 2009-09-14 16:49:23 -0700 |
|---|---|---|
| committer | maximius <none@none> | 2009-09-14 16:49:23 -0700 |
| commit | 140ec674a040bdc04086472330a289c2d15ecc65 (patch) | |
| tree | 343ac40e805c3139a2bc1bd80e956e89c5a1653c /src/game/Level1.cpp | |
| parent | b37f9b1e55bd4b80597b8b8c3f461aad70ccc5c1 (diff) | |
Backed out changeset d3fe2d6d504a (please test your patches thoroughly before getting me to push them ogeraisi)
--HG--
branch : trunk
Diffstat (limited to 'src/game/Level1.cpp')
| -rw-r--r-- | src/game/Level1.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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(); |
