forked from rosebudai/OpenRCT2-Web
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:
1 parent
2ebb691e71
commit
a09afd0be5
5 files changed
+21
-27
No files matched your search
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user