Added throttling to some appearance packets, also removed responding to client light packets. With the new light code we'll tell the client when the light has changed not the other way around.

This commit is contained in:
KimLS
2015-02-07 15:54:42 -08:00
parent edbd055277
commit 452b1a1eae
4 changed files with 38 additions and 15 deletions
+7
View File
@@ -260,6 +260,13 @@ bool Client::Process() {
}
}
if(light_update_timer.Check()) {
UpdateEquipLightValue();
if(UpdateActiveLightValue()) {
SendAppearancePacket(AT_Light, GetActiveLightValue());
}
}
bool may_use_attacks = false;
/*
Things which prevent us from attacking: