Skip to content

Commit

Permalink
More minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
bradharding committed Sep 28, 2024
1 parent 15f6801 commit 2478c15
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/c_cmds.c
Original file line number Diff line number Diff line change
Expand Up @@ -5061,7 +5061,7 @@ static void mapstats_func2(char *cmd, char *parms)
lump = W_CheckNumForName(lumpname);
wadtype = lumpinfo[lump]->wadfile->type;
}
else if (BTSX || KDIKDIZD)
else if (BTSX || KDIKDIZD || legacyofrust)
{
char lumpname[6];

Expand Down
7 changes: 6 additions & 1 deletion src/p_setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -3202,7 +3202,12 @@ void P_SetupLevel(int ep, int map)
&& ((numconsolestrings == 1
|| (!M_StringStartsWith(console[numconsolestrings - 2].string, "map ")
&& !autostart))))
C_Input("map %s", lumpname);
{
if (legacyofrust)
C_Input("map E%iM%i", maptoepisode[map], P_GetMapInEpisode(map));
else
C_Input("map %s", lumpname);
}

if (!(samelevel = (lumpnum == prevlumpnum)))
{
Expand Down
9 changes: 7 additions & 2 deletions src/p_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,6 @@ void P_MovePlayer(void)
mo->angle += ((cmd->angleturn * turbo / 100) << FRACBITS);

// killough 10/98:
//
// We must apply thrust to the player and bobbing separately, to avoid
// anomalies. The thrust applied to bobbing is always the same strength on
// ice, because the player still "works just as hard" to move, while the
Expand Down Expand Up @@ -310,7 +309,13 @@ static void P_DeathThink(void)

weaponrumbletics = 1;
idlechainsawrumblestrength = 0;
freeze = false;

if (freeze)
{
C_Input("freeze off");
freeze = false;
}

infight = (infighting && !solonet && !(viewplayer->cheats & CF_NOTARGET));

P_MovePlayerSprites();
Expand Down

0 comments on commit 2478c15

Please sign in to comment.