Skip to content

Commit

Permalink
game: code style cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
0lvin committed Jan 1, 2025
1 parent 1fdb0f8 commit 89719b4
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/game/monster/misc/move.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,12 @@ M_CheckBottom(edict_t *ent)
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,
Expand Down
2 changes: 1 addition & 1 deletion src/game/monster/widow/widow.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
};
Expand Down
4 changes: 2 additions & 2 deletions src/game/player/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
10 changes: 5 additions & 5 deletions src/game/player/weapon.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -3277,7 +3277,7 @@ weapon_phalanx_fire(edict_t *ent)
float damage_radius;
int radius_damage;

if (!ent)
if (!ent)
{
return;
}
Expand Down Expand Up @@ -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;
}
Expand Down Expand Up @@ -3373,7 +3373,7 @@ weapon_trap_fire(edict_t *ent, qboolean held)
int speed;
float radius;

if (!ent)
if (!ent)
{
return;
}
Expand Down Expand Up @@ -3401,7 +3401,7 @@ weapon_trap_fire(edict_t *ent, qboolean held)
void
Weapon_Trap(edict_t *ent)
{
if (!ent)
if (!ent)
{
return;
}
Expand Down

0 comments on commit 89719b4

Please sign in to comment.