Drop characters data blob. Bit thx to hunuza.
--HG-- branch : trunk
This commit is contained in:
+3
-3
@@ -4719,7 +4719,7 @@ bool ChatHandler::HandleExploreCheatCommand(const char *args)
|
||||
ChatHandler(chr).PSendSysMessage(LANG_YOURS_EXPLORE_SET_NOTHING,GetNameLink().c_str());
|
||||
}
|
||||
|
||||
for (uint8 i=0; i<128; ++i)
|
||||
for (uint8 i=0; i<PLAYER_EXPLORED_ZONES_SIZE; ++i)
|
||||
{
|
||||
if (flag != 0)
|
||||
{
|
||||
@@ -4876,7 +4876,7 @@ bool ChatHandler::HandleShowAreaCommand(const char *args)
|
||||
int offset = area / 32;
|
||||
uint32 val = (uint32)(1 << (area % 32));
|
||||
|
||||
if (area<0 || offset >= 128)
|
||||
if (area<0 || offset >= PLAYER_EXPLORED_ZONES_SIZE)
|
||||
{
|
||||
SendSysMessage(LANG_BAD_VALUE);
|
||||
SetSentErrorMessage(true);
|
||||
@@ -4907,7 +4907,7 @@ bool ChatHandler::HandleHideAreaCommand(const char *args)
|
||||
int offset = area / 32;
|
||||
uint32 val = (uint32)(1 << (area % 32));
|
||||
|
||||
if (area<0 || offset >= 128)
|
||||
if (area<0 || offset >= PLAYER_EXPLORED_ZONES_SIZE)
|
||||
{
|
||||
SendSysMessage(LANG_BAD_VALUE);
|
||||
SetSentErrorMessage(true);
|
||||
|
||||
Reference in New Issue
Block a user