summaryrefslogtreecommitdiff
path: root/network.c
diff options
context:
space:
mode:
authorsignde <signde@openttd.org>2004-09-17 16:59:03 +0000
committersignde <signde@openttd.org>2004-09-17 16:59:03 +0000
commitf7eccfc6fed243dc217cf93df0c65d613369d2ac (patch)
tree3e47301ff19018c0e73f3878e3b3e7abf224f0fb /network.c
parente049bd9b2b397be5882b8b78e457e63d179fb81b (diff)
downloadopenttd-f7eccfc6fed243dc217cf93df0c65d613369d2ac.tar.xz
(svn r282) -Fix: decode params change accidently commited
Diffstat (limited to 'network.c')
-rw-r--r--network.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/network.c b/network.c
index 7ddc970ce..3bb19907c 100644
--- a/network.c
+++ b/network.c
@@ -101,7 +101,7 @@ typedef struct CommandPacket {
TileIndex tile;
byte player;// player id, this is checked by the server.
byte when; // offset from the current max_frame value minus 1. this is set by the server.
- uint32 dp[10];
+ uint32 dp[8];
} CommandPacket;
typedef struct EventPacket {
@@ -481,7 +481,7 @@ void NetworkSendCommand(TileIndex tile, uint32 p1, uint32 p2, uint32 cmd, Comman
qp->frame = _frame_counter_max - GetNextSyncFrame();
// calculate the amount of extra bytes.
- nump = 10;
+ nump = 8;
while ( nump != 0 && ((uint32*)_decode_parameters)[nump-1] == 0) nump--;
qp->cp.packet_length = COMMAND_PACKET_BASE_SIZE + nump * sizeof(uint32);
if (nump != 0) memcpy(qp->cp.dp, _decode_parameters, nump * sizeof(uint32));