Guard against eaStanding spam

This commit is contained in:
Michael Cook (mackal) 2015-05-17 23:51:24 -04:00
parent 2308d3e880
commit 79a87fac1d

View File

@ -712,7 +712,8 @@ bool Mob::MakeNewPositionAndSendUpdate(float x, float y, float z, float speed, b
// force an update now // force an update now
move_tic_count = RuleI(Zone, NPCPositonUpdateTicCount); move_tic_count = RuleI(Zone, NPCPositonUpdateTicCount);
SendPosUpdate(); SendPosUpdate();
SetAppearance(eaStanding, false); if (GetAppearance() != eaStanding)
SetAppearance(eaStanding, false);
} }
pLastChange = Timer::GetCurrentTime(); pLastChange = Timer::GetCurrentTime();
@ -1050,7 +1051,7 @@ void ZoneDatabase::AssignGrid(Client *client, int grid, int spawn2id) {
if (!results.Success()) if (!results.Success())
return; return;
if (results.RowsAffected() != 1) { if (results.RowsAffected() != 1) {
return; return;
} }