]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Assign classnames to some entities
authorterencehill <piuntn@gmail.com>
Wed, 17 Mar 2021 11:31:41 +0000 (12:31 +0100)
committerterencehill <piuntn@gmail.com>
Wed, 17 Mar 2021 11:31:41 +0000 (12:31 +0100)
qcsrc/server/elimination.qc
qcsrc/server/teamplay.qc

index b081c91a719ca2fceccb26613258731c482f6598..28d10276625b8682f13bbce233eafe7986b06143 100644 (file)
@@ -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;
 }
index 6c45ab431417d644ecd9f3caeaeb28cb01f38e4f..7abd4e6bc47f100d307a8d4fb63e4cff05e2e7e5 100644 (file)
@@ -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);
        }
 }