Skip to content

Commit e7d4130

Browse files
committed
Minor tweaks
1 parent fb88008 commit e7d4130

3 files changed

Lines changed: 7 additions & 4 deletions

File tree

src/nano_bsp/nano_bsp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ nanode_t *BSP_NewNode(void)
9090
return node;
9191
}
9292

93-
void BSP_CalcOffset (seg_t *seg)
93+
void BSP_CalcOffset(seg_t *seg)
9494
{
9595
// compute which side of the linedef the seg is on
9696
line_t *ld = seg->linedef;

src/p_mobj.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,14 +165,14 @@ static void P_XYMovement(mobj_t *mo)
165165
player_t *player;
166166
fixed_t xmove, ymove;
167167
mobjtype_t type;
168-
int flags;
168+
int flags = mo->flags;
169169
int flags2;
170170
bool corpse;
171171
int stepdir = 0;
172172

173173
if (!(mo->momx | mo->momy))
174174
{
175-
if (mo->flags & MF_SKULLFLY)
175+
if (flags & MF_SKULLFLY)
176176
{
177177
// the skull slammed into something
178178
mo->flags &= ~MF_SKULLFLY;
@@ -185,7 +185,6 @@ static void P_XYMovement(mobj_t *mo)
185185

186186
player = mo->player;
187187
type = mo->type;
188-
flags = mo->flags;
189188
flags2 = mo->flags2;
190189
corpse = ((flags & MF_CORPSE) && type != MT_BARREL);
191190

src/p_setup.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3393,7 +3393,11 @@ static nodeformat_t P_CheckNodeFormat(int lumpnum)
33933393
I_Error("Hexen format maps are not supported.");
33943394

33953395
if (M_CheckParm("-bsp"))
3396+
{
33963397
format = NANOBSP;
3398+
C_Output("A " BOLD("-bsp") " parameter was found on the command-line. "
3399+
"The nodes of all maps will be rebuilt.");
3400+
}
33973401
else if ((subsize = W_LumpLengthWithName(lumpnum + ML_SSECTORS, "SSECTORS")) >= sizeof(mapsubsector_t))
33983402
{
33993403
n = W_CacheLumpNum(lumpnum + ML_SSECTORS);

0 commit comments

Comments
 (0)