Fix compilation errors
This commit is contained in:
@@ -1179,7 +1179,7 @@ void NetworkGameLoop()
|
||||
}
|
||||
|
||||
NetworkExecuteLocalCommandQueue();
|
||||
if (_pause_countdown > 0 && --_pause_countdown == 0) DoCommandP(0, PM_PAUSED_NORMAL, 1, CMD_PAUSE);
|
||||
if (_pause_countdown > 0 && --_pause_countdown == 0) Command<CMD_PAUSE>::Post(PM_PAUSED_NORMAL, 1);
|
||||
|
||||
citymania::ExecuteFakeCommands(_date, _date_fract);
|
||||
|
||||
|
||||
@@ -292,8 +292,8 @@ void NetworkSendCommand(Commands cmd, StringID err_message, CommandCallback *cal
|
||||
c.frame = 0; // The client can't tell which frame, so just make it 0
|
||||
|
||||
/* Clients send their command to the server and forget all about the packet */
|
||||
// MyClient::SendCommand(&c);
|
||||
citymania::SendClientCommand(&c);
|
||||
MyClient::SendCommand(&c);
|
||||
// FIXME citymania::SendClientCommand(&c);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -332,7 +332,8 @@ void NetworkExecuteLocalCommandQueue()
|
||||
if (_frame_counter > cp->frame) {
|
||||
/* If we reach here, it means for whatever reason, we've already executed
|
||||
* past the command we need to execute. */
|
||||
error("[net] Trying to execute a packet in the past! (frame=%u cmd_frame=%u tile=%u p1=%u p2=%u cmd=%u)", (uint)_frame_counter, (uint)cp->frame, (uint)cp->tile, (uint)cp->p1, (uint)cp->p2, (uint)cp->cmd);
|
||||
error("[net] Trying to execute a packet in the past! (frame=%u cmd_frame=%u)", (uint)_frame_counter, (uint)cp->frame);
|
||||
// FIXME error("[net] Trying to execute a packet in the past! (frame=%u cmd_frame=%u tile=%u p1=%u p2=%u cmd=%u)", (uint)_frame_counter, (uint)cp->frame, (uint)cp->tile, (uint)cp->p1, (uint)cp->p2, (uint)cp->cmd);
|
||||
}
|
||||
|
||||
/* We can execute this command */
|
||||
|
||||
Reference in New Issue
Block a user