Fix some warnings and indentation.

This commit is contained in:
Marco Cawthorne 2022-03-14 11:18:05 -07:00
parent 6efa7487ee
commit fd71e623f7
Signed by: eukara
GPG Key ID: C196CD8BA993248A
12 changed files with 13 additions and 12 deletions

View File

@ -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();

View File

@ -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,

View File

@ -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,

View File

@ -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,

View File

@ -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,

View File

@ -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,

View File

@ -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,

View File

@ -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,

View File

@ -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,

View File

@ -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,

View File

@ -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,

View File

@ -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,