(List<String> args, GameImportsImpl gameImports, client_t client)
| 219 | * ================== SV_Begin_f ================== |
| 220 | */ |
| 221 | private static void SV_Begin_f(List<String> args, GameImportsImpl gameImports, client_t client) { |
| 222 | Com.DPrintf("Begin() from " + client.name + "\n"); |
| 223 | |
| 224 | // handle the case of a level changing while a client was connecting |
| 225 | int spawnCount = args.size() >= 2 ? Lib.atoi(args.get(1)) : 0; |
| 226 | if (spawnCount != gameImports.spawncount) { |
| 227 | Com.Printf("SV_Begin_f from different level\n"); |
| 228 | SV_New_f(args, gameImports, client); |
| 229 | return; |
| 230 | } |
| 231 | |
| 232 | client.state = ClientStates.CS_SPAWNED; |
| 233 | |
| 234 | // call the jake2.game begin function |
| 235 | gameImports.gameExports.ClientBegin(client.edict); |
| 236 | |
| 237 | Cbuf.InsertFromDefer(); |
| 238 | } |
| 239 | |
| 240 | //============================================================================= |
| 241 |
nothing calls this directly
no test coverage detected