Skip to content

Commit

Permalink
Only take enabled spawns into account.
Browse files Browse the repository at this point in the history
  • Loading branch information
splewis committed Sep 16, 2017
1 parent 4713d17 commit b8071d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripting/practicemode/spawns.sp
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ static void FindMapSpawnsForTeam(ArrayList list, const char[] spawnClassName) {
ent = -1;
while ((ent = FindEntityByClassname(ent, spawnClassName)) != -1) {
int priority = GetEntProp(ent, Prop_Data, "m_iPriority");
if (priority == minPriority) {
int enabled = GetEntProp(ent, Prop_Data, "m_bEnabled");
if (enabled && priority == minPriority) {
list.Push(ent);
}
}
Expand Down

0 comments on commit b8071d1

Please sign in to comment.