mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-02-14 16:01:46 +00:00
game: code style cleanup
This commit is contained in:
parent
1fdb0f81e6
commit
89719b4a27
4 changed files with 10 additions and 10 deletions
|
@ -100,12 +100,12 @@ realcheck:
|
||||||
if (ent->gravityVector[2] < 0)
|
if (ent->gravityVector[2] < 0)
|
||||||
{
|
{
|
||||||
start[2] = mins[2];
|
start[2] = mins[2];
|
||||||
stop[2] = start[2] - STEPSIZE - STEPSIZE;
|
stop[2] = start[2] - (2 * STEPSIZE);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
start[2] = maxs[2];
|
start[2] = maxs[2];
|
||||||
stop[2] = start[2] + STEPSIZE + STEPSIZE;
|
stop[2] = start[2] + (2 * STEPSIZE);
|
||||||
}
|
}
|
||||||
|
|
||||||
trace = gi.trace(start, vec3_origin, vec3_origin,
|
trace = gi.trace(start, vec3_origin, vec3_origin,
|
||||||
|
|
|
@ -1036,7 +1036,7 @@ static mframe_t widow_frames_death[] = {
|
||||||
|
|
||||||
mmove_t widow_move_death = {
|
mmove_t widow_move_death = {
|
||||||
FRAME_death01,
|
FRAME_death01,
|
||||||
FRAME_death31,
|
FRAME_death31,
|
||||||
widow_frames_death,
|
widow_frames_death,
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
|
@ -230,8 +230,8 @@ SP_CreateUnnamedSpawn(edict_t *self)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* power2 */
|
/* power2 */
|
||||||
if (Q_stricmp(level.mapname, "power2") == 0)
|
if (Q_stricmp(level.mapname, "power2") == 0)
|
||||||
{
|
{
|
||||||
if (Q_stricmp(self->targetname, "power1") == 0)
|
if (Q_stricmp(self->targetname, "power1") == 0)
|
||||||
{
|
{
|
||||||
|
|
|
@ -3249,7 +3249,7 @@ Weapon_Ionripper(edict_t *ent)
|
||||||
static int pause_frames[] = {36, 0};
|
static int pause_frames[] = {36, 0};
|
||||||
static int fire_frames[] = {5, 0};
|
static int fire_frames[] = {5, 0};
|
||||||
|
|
||||||
if (!ent)
|
if (!ent)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -3277,7 +3277,7 @@ weapon_phalanx_fire(edict_t *ent)
|
||||||
float damage_radius;
|
float damage_radius;
|
||||||
int radius_damage;
|
int radius_damage;
|
||||||
|
|
||||||
if (!ent)
|
if (!ent)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -3345,7 +3345,7 @@ Weapon_Phalanx(edict_t *ent)
|
||||||
static int pause_frames[] = {29, 42, 55, 0};
|
static int pause_frames[] = {29, 42, 55, 0};
|
||||||
static int fire_frames[] = {7, 8, 0};
|
static int fire_frames[] = {7, 8, 0};
|
||||||
|
|
||||||
if (!ent)
|
if (!ent)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -3373,7 +3373,7 @@ weapon_trap_fire(edict_t *ent, qboolean held)
|
||||||
int speed;
|
int speed;
|
||||||
float radius;
|
float radius;
|
||||||
|
|
||||||
if (!ent)
|
if (!ent)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -3401,7 +3401,7 @@ weapon_trap_fire(edict_t *ent, qboolean held)
|
||||||
void
|
void
|
||||||
Weapon_Trap(edict_t *ent)
|
Weapon_Trap(edict_t *ent)
|
||||||
{
|
{
|
||||||
if (!ent)
|
if (!ent)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue