1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-16 19:43:06 +01:00

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
2016-02-14 21:36:31 +01:00
parent 2ebb691e71
commit a09afd0be5
5 changed files with 21 additions and 27 deletions

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();