src/network/network_server.cpp
branchgamebalance
changeset 9911 0b8b245a2391
parent 9895 7bd07f43b0e3
child 9912 1ac8aac92385
--- a/src/network/network_server.cpp	Wed Jun 13 11:17:30 2007 +0000
+++ b/src/network/network_server.cpp	Wed Jun 13 11:45:14 2007 +0000
@@ -101,7 +101,7 @@
 		p->Send_uint16(_network_player_info[player->index].performance);
 
 		/* Send 1 if there is a passord for the company else send 0 */
-		p->Send_bool(StrEmpty(_network_player_info[player->index].password));
+		p->Send_bool(!StrEmpty(_network_player_info[player->index].password));
 
 		for (i = 0; i < NETWORK_VEHICLE_TYPES; i++) {
 			p->Send_uint16(_network_player_info[player->index].num_vehicle[i]);
@@ -1115,7 +1115,7 @@
 {
 	NetworkAction action = (NetworkAction)p->Recv_uint8();
 	DestType desttype = (DestType)p->Recv_uint8();
-	int dest = p->Recv_uint8();
+	int dest = p->Recv_uint16();
 	char msg[MAX_TEXT_MSG_LEN];
 
 	p->Recv_string(msg, MAX_TEXT_MSG_LEN);
@@ -1301,9 +1301,7 @@
 				_network_player_info[v->owner].num_vehicle[4]++;
 				break;
 
-			case VEH_SPECIAL:
-			case VEH_DISASTER:
-				break;
+			default: break;
 		}
 	}