Tell a player what ship they are supposed to switch to if the one they chose isn't allowed.
| 9421 | // Tell a player what ship they are supposed to switch to |
| 9422 | // if the one they chose isn't allowed. |
| 9423 | void MultiBashPlayerShip(int slot, char *ship) { |
| 9424 | uint8_t outdata[100]; |
| 9425 | int count = 0; |
| 9426 | int size; |
| 9427 | |
| 9428 | size = START_DATA(MP_BASHPLAYER_SHIP, outdata, &count); |
| 9429 | strcpy((char *)outdata + count, ship); |
| 9430 | count += strlen(ship) + 1; |
| 9431 | END_DATA(count, outdata, size); |
| 9432 | nw_SendReliable(NetPlayers[slot].reliable_socket, outdata, count, true); |
| 9433 | } |
| 9434 | |
| 9435 | int ObjInitTypeSpecific(object *objp, bool reinitializing); |
| 9436 |
no test coverage detected