Fix some warnings and indentation.
This commit is contained in:
parent
6efa7487ee
commit
fd71e623f7
12 changed files with 13 additions and 12 deletions
|
@ -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();
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue