(edict_t ent, GameExportsImpl gameExports)
| 404 | * =============== |
| 405 | */ |
| 406 | public static void G_CheckChaseStats(edict_t ent, GameExportsImpl gameExports) { |
| 407 | |
| 408 | for (int i = 1; i <= gameExports.game.maxclients; i++) { |
| 409 | gclient_t cl = gameExports.g_edicts[i].getClient(); |
| 410 | if (!gameExports.g_edicts[i].inuse || cl.chase_target != ent) |
| 411 | continue; |
| 412 | //memcpy(cl.ps.stats, ent.client.ps.stats, sizeof(cl.ps.stats)); |
| 413 | System.arraycopy(ent.getClient().getPlayerState().stats, 0, cl.getPlayerState().stats, 0, |
| 414 | Defines.MAX_STATS); |
| 415 | |
| 416 | G_SetSpectatorStats(gameExports.g_edicts[i], gameExports); |
| 417 | } |
| 418 | } |
| 419 | |
| 420 | /* |
| 421 | * =============== |
no test coverage detected