| 210 | } |
| 211 | |
| 212 | static uint8 *MakeMPS(ClientEntry *client) |
| 213 | { |
| 214 | static uint8 buf[64]; |
| 215 | uint8 *bp = buf; |
| 216 | int x; |
| 217 | GameEntry *game = (GameEntry *)client->game; |
| 218 | |
| 219 | for(x=0;x<4;x++) |
| 220 | { |
| 221 | if(game->Players[x] == client) |
| 222 | { |
| 223 | *bp = '0' + x + 1; |
| 224 | bp++; |
| 225 | *bp = ','; |
| 226 | bp++; |
| 227 | } |
| 228 | } |
| 229 | if(*(bp-1) == ',') bp--; |
| 230 | |
| 231 | *bp = 0; |
| 232 | return(buf); |
| 233 | } |
| 234 | |
| 235 | /* Returns 1 if we are back to normal game mode, 0 if more data is yet to arrive. */ |
| 236 | static int CheckNBTCPReceive(ClientEntry *client) throw() |
no outgoing calls
no test coverage detected