X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fnetwork.c;h=5511d176a1b9a9264c0e9b9db35fec4efe0a39f2;hb=fde4ab29c61f6c0061d45df67cf1fcb05c1f5e47;hp=a2928592b4a23fae7d379a47dbf68cf779e41e0f;hpb=9073d88279c0b9c5be103a6bb4d5c608ab0d90cc;p=rocksndiamonds.git diff --git a/src/network.c b/src/network.c index a2928592..5511d176 100644 --- a/src/network.c +++ b/src/network.c @@ -266,7 +266,7 @@ void SendToServer_StopPlaying() void SendToServer_MovePlayer(byte player_action) { - buffer[1] = OP_MOVE_FIGURE; + buffer[1] = OP_MOVE_PLAYER; buffer[2] = player_action; SendBufferToServer(3); @@ -486,7 +486,7 @@ static void Handle_OP_STOP_PLAYING() DrawMainMenu(); } -static void Handle_OP_MOVE_FIGURE(unsigned int len) +static void Handle_OP_MOVE_PLAYER(unsigned int len) { int server_frame_counter; int i; @@ -569,8 +569,8 @@ static void HandleNetworkingMessages() Handle_OP_STOP_PLAYING(); break; - case OP_MOVE_FIGURE: - Handle_OP_MOVE_FIGURE(message_length); + case OP_MOVE_PLAYER: + Handle_OP_MOVE_PLAYER(message_length); break; case OP_BROADCAST_MESSAGE: