game: code style cleanup

This commit is contained in:
Denis Pauk 2025-01-01 14:36:38 +02:00
parent 1fdb0f81e6
commit 89719b4a27
4 changed files with 10 additions and 10 deletions

View file

@ -100,12 +100,12 @@ realcheck:
if (ent->gravityVector[2] < 0)
{
start[2] = mins[2];
stop[2] = start[2] - STEPSIZE - STEPSIZE;
stop[2] = start[2] - (2 * STEPSIZE);
}
else
{
start[2] = maxs[2];
stop[2] = start[2] + STEPSIZE + STEPSIZE;
stop[2] = start[2] + (2 * STEPSIZE);
}
trace = gi.trace(start, vec3_origin, vec3_origin,

View file

@ -1036,7 +1036,7 @@ static mframe_t widow_frames_death[] = {
mmove_t widow_move_death = {
FRAME_death01,
FRAME_death31,
FRAME_death31,
widow_frames_death,
NULL
};

View file

@ -230,8 +230,8 @@ SP_CreateUnnamedSpawn(edict_t *self)
}
}
/* power2 */
if (Q_stricmp(level.mapname, "power2") == 0)
/* power2 */
if (Q_stricmp(level.mapname, "power2") == 0)
{
if (Q_stricmp(self->targetname, "power1") == 0)
{

View file

@ -3249,7 +3249,7 @@ Weapon_Ionripper(edict_t *ent)
static int pause_frames[] = {36, 0};
static int fire_frames[] = {5, 0};
if (!ent)
if (!ent)
{
return;
}
@ -3277,7 +3277,7 @@ weapon_phalanx_fire(edict_t *ent)
float damage_radius;
int radius_damage;
if (!ent)
if (!ent)
{
return;
}
@ -3345,7 +3345,7 @@ Weapon_Phalanx(edict_t *ent)
static int pause_frames[] = {29, 42, 55, 0};
static int fire_frames[] = {7, 8, 0};
if (!ent)
if (!ent)
{
return;
}
@ -3373,7 +3373,7 @@ weapon_trap_fire(edict_t *ent, qboolean held)
int speed;
float radius;
if (!ent)
if (!ent)
{
return;
}
@ -3401,7 +3401,7 @@ weapon_trap_fire(edict_t *ent, qboolean held)
void
Weapon_Trap(edict_t *ent)
{
if (!ent)
if (!ent)
{
return;
}