From 04259d2db6a2b86a89ac4086f74f6f80dbb23540 Mon Sep 17 00:00:00 2001 From: TimePath Date: Sun, 27 Sep 2015 17:08:51 +1000 Subject: [PATCH] Guide: Load turrets --- qcsrc/menu/progs.inc | 1 + qcsrc/menu/xonotic/dialog_media_guide.qc | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/qcsrc/menu/progs.inc b/qcsrc/menu/progs.inc index 45c52c8c02..6739feaf95 100644 --- a/qcsrc/menu/progs.inc +++ b/qcsrc/menu/progs.inc @@ -23,6 +23,7 @@ #include "../common/items/all.qc" #include "../common/monsters/all.qc" #include "../common/mutators/all.qc" +#include "../common/turrets/all.qc" #include "../common/vehicles/all.qc" #include "../common/weapons/all.qc" diff --git a/qcsrc/menu/xonotic/dialog_media_guide.qc b/qcsrc/menu/xonotic/dialog_media_guide.qc index 28432c7af5..e36fc99579 100644 --- a/qcsrc/menu/xonotic/dialog_media_guide.qc +++ b/qcsrc/menu/xonotic/dialog_media_guide.qc @@ -10,7 +10,7 @@ X(NEW(NadeSource), _("Nades"), "gametype_ft") \ X(NEW(MonsterSource), _("Monsters"), "gametype_lms") \ X(NEW(VehicleSource), _("Vehicles"), "gametype_rc") \ - X(NEW(VehicleSource), _("Turrets"), "gametype_as") \ + X(NEW(TurretSource), _("Turrets"), "gametype_as") \ X(NEW(MutatorSource), _("Mutators"), "gametype_nb") \ X(NEW(MapSource), _("Maps"), "gametype_ctf") \ if (cvar("developer")) X(NEW(DebugSource), _("Debug"), "gametype_ons") \ @@ -107,6 +107,9 @@ REGISTRY_SOURCE(MonsterSource, monster_info, MON_COUNT) #include "../../common/vehicles/all.qh" REGISTRY_SOURCE(VehicleSource, vehicle_info, VEH_COUNT) +#include "../../common/turrets/all.qh" +REGISTRY_SOURCE(TurretSource, turret_info, TUR_COUNT) + #include "../../common/mutators/base.qh" REGISTRY_SOURCE(MutatorSource, MUTATORS, MUTATORS_COUNT) -- 2.39.2