Minor fixes

* Be more cautious while doing pathfinding
* Be a little more deterministic on network by initialising all member
  fields.
This commit is contained in:
Michał Janiszewski committed 2016-02-14 22:22:38 +01:00
1 parent 2ebb691e71
commit a09afd0be5
5 files changed
+21 -27

No files matched your search

-12
View File
@@ -183,18 +183,6 @@ bool NetworkPacket::CommandRequiresAuth()
}
}
NetworkPlayer::NetworkPlayer()
{
name[0] = 0;
ping = 0;
flags = 0;
money_spent = MONEY(0, 0);
commands_ran = 0;
group = 0;
last_action = -999;
last_action_coord = {0};
}
void NetworkPlayer::Read(NetworkPacket& packet)
{
const char* name = packet.ReadString();