From: TimePath <andrew.hardaker1995@gmail.com>
Date: Sat, 5 Aug 2017 07:14:46 +0000 (+1000)
Subject: Lint
X-Git-Tag: xonotic-v0.8.5~2541
X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=22f5546e0106c82601b8e92281cd34ec9d864423;p=xonotic%2Fxonotic-data.pk3dir.git

Lint
---

diff --git a/qcsrc/common/minigames/minigame/bd.qc b/qcsrc/common/minigames/minigame/bd.qc
index 904b7772ea..cda2e5d261 100644
--- a/qcsrc/common/minigames/minigame/bd.qc
+++ b/qcsrc/common/minigames/minigame/bd.qc
@@ -1020,7 +1020,7 @@ void bd_hud_board(vector pos, vector mySize)
 				minigame_drawpic_centered( tile_pos,
 						minigame_texture(thepiece),
 						tile_size, '1 1 1', panel_fg_alpha, DRAWFLAG_NORMAL );
-			}	
+			}
 		}
 		else if ( e.classname == "minigame_board_piece" )
 		{
@@ -1058,7 +1058,7 @@ void bd_hud_board(vector pos, vector mySize)
 				default:
 				case BD_DIR_DN: theang = M_PI; break;
 				case BD_DIR_LF: theang = M_PI * 3 / 2; break;
-				case BD_DIR_RT: theang = M_PI / 2; break; 
+				case BD_DIR_RT: theang = M_PI / 2; break;
 			}
 
 			drawrotpic(tile_pos, theang, minigame_texture("bd/dozer"),
diff --git a/qcsrc/common/monsters/_mod.qh b/qcsrc/common/monsters/_mod.qh
index 55204bd1a7..7f726d6409 100644
--- a/qcsrc/common/monsters/_mod.qh
+++ b/qcsrc/common/monsters/_mod.qh
@@ -6,5 +6,8 @@
 #ifdef SVQC
     #include <common/monsters/sv_spawn.qh>
 #endif
+#ifdef SVQC
+    #include <common/monsters/sv_spawner.qh>
+#endif
 
 #include <common/monsters/monster/_mod.qh>
diff --git a/qcsrc/common/monsters/sv_spawn.qc b/qcsrc/common/monsters/sv_spawn.qc
index 884fb3dea1..4bbe2ce3d8 100644
--- a/qcsrc/common/monsters/sv_spawn.qc
+++ b/qcsrc/common/monsters/sv_spawn.qc
@@ -19,7 +19,7 @@ entity spawnmonster (entity e, string monster, int monster_id, entity spawnedby,
 
 	if(monster == "random")
 	{
-		RandomSelection_Init();	
+		RandomSelection_Init();
 		FOREACH(Monsters, it != MON_Null && !(it.spawnflags & MONSTER_TYPE_PASSIVE) && !(it.spawnflags & MON_FLAG_HIDDEN),
 		{
 			RandomSelection_AddEnt(it, 1, 1);
diff --git a/qcsrc/common/monsters/sv_spawner.qc b/qcsrc/common/monsters/sv_spawner.qc
index 0b34d13e65..d3f4ee740a 100644
--- a/qcsrc/common/monsters/sv_spawner.qc
+++ b/qcsrc/common/monsters/sv_spawner.qc
@@ -1,3 +1,4 @@
+#include "sv_spawner.qh"
 #include "sv_spawn.qh"
 
 void spawner_use(entity this, entity actor, entity trigger)
diff --git a/qcsrc/common/monsters/sv_spawner.qh b/qcsrc/common/monsters/sv_spawner.qh
new file mode 100644
index 0000000000..6f70f09bee
--- /dev/null
+++ b/qcsrc/common/monsters/sv_spawner.qh
@@ -0,0 +1 @@
+#pragma once
diff --git a/qcsrc/common/mutators/mutator/walljump/walljump.qc b/qcsrc/common/mutators/mutator/walljump/walljump.qc
index 95a52185b8..b0d95ea29e 100644
--- a/qcsrc/common/mutators/mutator/walljump/walljump.qc
+++ b/qcsrc/common/mutators/mutator/walljump/walljump.qc
@@ -44,7 +44,7 @@ MUTATOR_HOOKFUNCTION(walljump, PlayerJump)
 	if(!IS_DEAD(player))
 	{
 		vector plane_normal = PlayerTouchWall(player);
-		
+
 		if(plane_normal != '0 0 0')
 		{
 			float wj_force = PHYS_WALLJUMP_FORCE(player);
diff --git a/qcsrc/common/t_items.qc b/qcsrc/common/t_items.qc
index 1e5f8284cb..e674eff428 100644
--- a/qcsrc/common/t_items.qc
+++ b/qcsrc/common/t_items.qc
@@ -1373,7 +1373,7 @@ spawnfunc(item_rockets)
 
 spawnfunc(item_bullets)
 {
-	if(!weaponswapping && autocvar_sv_q3acompat_machineshotgunswap && 
+	if(!weaponswapping && autocvar_sv_q3acompat_machineshotgunswap &&
 	   (this.classname != "droppedweapon"))
 	{
 		weaponswapping = true;
diff --git a/qcsrc/common/triggers/target/_mod.qh b/qcsrc/common/triggers/target/_mod.qh
index 6b06b75f10..c59ee79761 100644
--- a/qcsrc/common/triggers/target/_mod.qh
+++ b/qcsrc/common/triggers/target/_mod.qh
@@ -1,6 +1,7 @@
 // generated file; do not modify
 #include <common/triggers/target/changelevel.qh>
 #include <common/triggers/target/include.qh>
+#include <common/triggers/target/kill.qh>
 #include <common/triggers/target/levelwarp.qh>
 #include <common/triggers/target/location.qh>
 #include <common/triggers/target/music.qh>
diff --git a/qcsrc/common/triggers/target/kill.qc b/qcsrc/common/triggers/target/kill.qc
index a086bb3c89..a821ac1393 100644
--- a/qcsrc/common/triggers/target/kill.qc
+++ b/qcsrc/common/triggers/target/kill.qc
@@ -1,3 +1,4 @@
+#include "kill.qh"
 #include "location.qh"
 #ifdef SVQC
 
diff --git a/qcsrc/common/triggers/target/kill.qh b/qcsrc/common/triggers/target/kill.qh
new file mode 100644
index 0000000000..6f70f09bee
--- /dev/null
+++ b/qcsrc/common/triggers/target/kill.qh
@@ -0,0 +1 @@
+#pragma once
diff --git a/qcsrc/common/turrets/sv_turrets.qc b/qcsrc/common/turrets/sv_turrets.qc
index b9250f0a88..cb69bf0ff1 100644
--- a/qcsrc/common/turrets/sv_turrets.qc
+++ b/qcsrc/common/turrets/sv_turrets.qc
@@ -1254,7 +1254,7 @@ void turret_findtarget(entity this)
 		setthink(e, turrets_manager_think);
 		e.nextthink = time + 2;
 	}
-	
+
 	entity targ = find(NULL, targetname, this.target);
 	if(targ.classname == "turret_checkpoint")
 		return; // turrets don't defend checkpoints?
diff --git a/qcsrc/lib/warpzone/server.qc b/qcsrc/lib/warpzone/server.qc
index 40c317a691..fa24789675 100644
--- a/qcsrc/lib/warpzone/server.qc
+++ b/qcsrc/lib/warpzone/server.qc
@@ -811,7 +811,7 @@ void WarpZone_StartFrame()
 			WarpZone_StoreProjectileData(it);
 		});
 	}
-		
+
 
 	FOREACH_CLIENT(true,
 	{
diff --git a/qcsrc/server/bot/default/havocbot/havocbot.qc b/qcsrc/server/bot/default/havocbot/havocbot.qc
index cede623668..24d960284f 100644
--- a/qcsrc/server/bot/default/havocbot/havocbot.qc
+++ b/qcsrc/server/bot/default/havocbot/havocbot.qc
@@ -363,7 +363,7 @@ void havocbot_bunnyhop(entity this, vector dir)
 					if(checkdistance)
 					{
 						this.aistatus &= ~AI_STATUS_RUNNING;
-						// increase stop distance in case the goal is on a slope or a lower platform 
+						// increase stop distance in case the goal is on a slope or a lower platform
 						if(bunnyhopdistance > autocvar_bot_ai_bunnyhop_stopdistance + (this.origin.z - gco.z))
 							PHYS_INPUT_BUTTON_JUMP(this) = true;
 					}
diff --git a/qcsrc/server/client.qh b/qcsrc/server/client.qh
index 8e8c8d71b3..ee00c60ca6 100644
--- a/qcsrc/server/client.qh
+++ b/qcsrc/server/client.qh
@@ -148,7 +148,7 @@ CLASS(Spectator, Client)
 ENDCLASS(Spectator)
 
 CLASS(Player, Client)
-    
+
     // custom
 
     ATTRIB(Player, dual_weapons, vector, this.dual_weapons); // TODO: actually WepSet!