From fd71e623f72b37d4162b215f17fa63b8c91d9101 Mon Sep 17 00:00:00 2001 From: Marco Hladik Date: Mon, 14 Mar 2022 11:18:05 -0700 Subject: [PATCH] Fix some warnings and indentation. --- src/shared/fx_explosion.qc | 3 ++- src/shared/w_crowbar.qc | 2 +- src/shared/w_egon.qc | 2 +- src/shared/w_gauss.qc | 2 +- src/shared/w_glock.qc | 2 +- src/shared/w_handgrenade.qc | 2 +- src/shared/w_mp5.qc | 2 +- src/shared/w_python.qc | 2 +- src/shared/w_satchel.qc | 2 +- src/shared/w_shotgun.qc | 2 +- src/shared/w_snark.qc | 2 +- src/shared/w_tripmine.qc | 2 +- 12 files changed, 13 insertions(+), 12 deletions(-) diff --git a/src/shared/fx_explosion.qc b/src/shared/fx_explosion.qc index 6b3ab5f..b536ab1 100755 --- a/src/shared/fx_explosion.qc +++ b/src/shared/fx_explosion.qc @@ -54,7 +54,7 @@ FX_Explosion(vector vecPos) self.nextthink = time + 0.1f + (random() * 0.1f); } - static void FX_Explosion_DLight(void) + static float FX_Explosion_DLight(void) { dynamiclight_add(self.origin, 256 * self.alpha, [1.0,0.45,0]); @@ -65,6 +65,7 @@ FX_Explosion(vector vecPos) } else { addentity(self); } + return PREDRAW_NEXT; } entity dlight = spawn(); diff --git a/src/shared/w_crowbar.qc b/src/shared/w_crowbar.qc index cb3e5a2..cf80a55 100644 --- a/src/shared/w_crowbar.qc +++ b/src/shared/w_crowbar.qc @@ -218,7 +218,7 @@ weapontype_t w_crowbar_type(void) weapon_t w_crowbar = { .name = "crowbar", - .id = ITEM_CROWBAR, + .id = ITEM_CROWBAR, .slot = 0, .slot_pos = 0, .weight = 0, diff --git a/src/shared/w_egon.qc b/src/shared/w_egon.qc index e8a056d..c4c03ea 100644 --- a/src/shared/w_egon.qc +++ b/src/shared/w_egon.qc @@ -307,7 +307,7 @@ w_egon_type(void) weapon_t w_egon = { .name = "egon", - .id = ITEM_EGON, + .id = ITEM_EGON, .slot = 3, .slot_pos = 2, .weight = 15, diff --git a/src/shared/w_gauss.qc b/src/shared/w_gauss.qc index 989c25a..d36e84d 100644 --- a/src/shared/w_gauss.qc +++ b/src/shared/w_gauss.qc @@ -383,7 +383,7 @@ w_gauss_type(void) weapon_t w_gauss = { .name = "gauss", - .id = ITEM_GAUSS, + .id = ITEM_GAUSS, .slot = 3, .slot_pos = 1, .weight = 20, diff --git a/src/shared/w_glock.qc b/src/shared/w_glock.qc index 7ca98ce..b09ee28 100644 --- a/src/shared/w_glock.qc +++ b/src/shared/w_glock.qc @@ -408,7 +408,7 @@ w_glock_type(void) weapon_t w_glock = { .name = "9mmhandgun", - .id = ITEM_GLOCK, + .id = ITEM_GLOCK, .slot = 1, .slot_pos = 0, .weight = 10, diff --git a/src/shared/w_handgrenade.qc b/src/shared/w_handgrenade.qc index 6d8c291..9e26115 100644 --- a/src/shared/w_handgrenade.qc +++ b/src/shared/w_handgrenade.qc @@ -264,7 +264,7 @@ w_handgrenade_type(void) weapon_t w_handgrenade = { .name = "grenade", - .id = ITEM_HANDGRENADE, + .id = ITEM_HANDGRENADE, .slot = 4, .slot_pos = 0, .weight = 5, diff --git a/src/shared/w_mp5.qc b/src/shared/w_mp5.qc index 4d1b788..e161ca0 100644 --- a/src/shared/w_mp5.qc +++ b/src/shared/w_mp5.qc @@ -405,7 +405,7 @@ w_mp5_type(void) weapon_t w_mp5 = { .name = "9mmAR", - .id = ITEM_MP5, + .id = ITEM_MP5, .slot = 2, .slot_pos = 0, .weight = 15, diff --git a/src/shared/w_python.qc b/src/shared/w_python.qc index e6a11cf..1e80276 100644 --- a/src/shared/w_python.qc +++ b/src/shared/w_python.qc @@ -360,7 +360,7 @@ w_python_type(void) weapon_t w_python = { .name = "357", - .id = ITEM_PYTHON, + .id = ITEM_PYTHON, .slot = 1, .slot_pos = 1, .weight = 15, diff --git a/src/shared/w_satchel.qc b/src/shared/w_satchel.qc index 5a0432d..0c0d4d2 100644 --- a/src/shared/w_satchel.qc +++ b/src/shared/w_satchel.qc @@ -329,7 +329,7 @@ w_satchel_type(void) weapon_t w_satchel = { .name = "satchel", - .id = ITEM_SATCHEL, + .id = ITEM_SATCHEL, .slot = 4, .slot_pos = 1, .weight = -20, diff --git a/src/shared/w_shotgun.qc b/src/shared/w_shotgun.qc index b263dea..56e16ac 100644 --- a/src/shared/w_shotgun.qc +++ b/src/shared/w_shotgun.qc @@ -417,7 +417,7 @@ w_shotgun_type(void) weapon_t w_shotgun = { .name = "shotgun", - .id = ITEM_SHOTGUN, + .id = ITEM_SHOTGUN, .slot = 2, .slot_pos = 1, .weight = 15, diff --git a/src/shared/w_snark.qc b/src/shared/w_snark.qc index e193463..db9cd52 100644 --- a/src/shared/w_snark.qc +++ b/src/shared/w_snark.qc @@ -339,7 +339,7 @@ w_snark_type(void) weapon_t w_snark = { .name = "snark", - .id = ITEM_SNARK, + .id = ITEM_SNARK, .slot = 4, .slot_pos = 3, .weight = 5, diff --git a/src/shared/w_tripmine.qc b/src/shared/w_tripmine.qc index 86fbf1a..e705c36 100644 --- a/src/shared/w_tripmine.qc +++ b/src/shared/w_tripmine.qc @@ -395,7 +395,7 @@ w_tripmine_type(void) weapon_t w_tripmine = { .name = "tripmine", - .id = ITEM_TRIPMINE, + .id = ITEM_TRIPMINE, .slot = 4, .slot_pos = 2, .weight = -10,