From: terencehill Date: Wed, 17 Mar 2021 11:31:41 +0000 (+0100) Subject: Assign classnames to some entities X-Git-Tag: xonotic-v0.8.5~501 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=8a55eb2e9db747e0192d2e3801e08dec93b0c29a;p=xonotic%2Fxonotic-data.pk3dir.git Assign classnames to some entities --- diff --git a/qcsrc/server/elimination.qc b/qcsrc/server/elimination.qc index b081c91a7..28d102766 100644 --- a/qcsrc/server/elimination.qc +++ b/qcsrc/server/elimination.qc @@ -31,6 +31,6 @@ void EliminatedPlayers_Init(float(entity) isEliminated_func) backtrace("Can't spawn eliminatedPlayers again!"); return; } - Net_LinkEntity(eliminatedPlayers = new_pure(), false, 0, EliminatedPlayers_SendEntity); + Net_LinkEntity(eliminatedPlayers = new_pure(eliminatedPlayers), false, 0, EliminatedPlayers_SendEntity); eliminatedPlayers.isEliminated = isEliminated_func; } diff --git a/qcsrc/server/teamplay.qc b/qcsrc/server/teamplay.qc index 6c45ab431..7abd4e6bc 100644 --- a/qcsrc/server/teamplay.qc +++ b/qcsrc/server/teamplay.qc @@ -52,7 +52,7 @@ void Team_InitTeams() return; for (int i = 0; i < NUM_TEAMS; ++i) { - g_team_entities[i] = new_pure(); + g_team_entities[i] = new_pure(team_entity); } }