Skip to content

Commit

Permalink
func_buyzone: ensure that our team value is set within SpawnKey()
Browse files Browse the repository at this point in the history
  • Loading branch information
eukara committed Jan 20, 2023
1 parent d0ebfb8 commit 6c9170e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/server/func_buyzone.qc
Expand Up @@ -47,6 +47,7 @@ func_buyzone:NSBrushTrigger

virtual void(entity) Touch;
virtual void(void) Respawn;
virtual void(string, string) SpawnKey;
};

void
Expand All @@ -60,6 +61,18 @@ func_buyzone::Respawn(void)
InitBrushTrigger();
}

void
func_buyzone::SpawnKey(string strKey, string strValue)
{
switch (strKey) {
case "team":
team = stoi(strValue);
break;
default:
super::SpawnKey(strKey, strValue);
}
}

void
func_buyzone::Touch(entity eToucher)
{
Expand Down

0 comments on commit 6c9170e

Please sign in to comment.