Skip to content

Commit

Permalink
- minor cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed May 1, 2021
1 parent 13b21d3 commit f3eb476
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
5 changes: 2 additions & 3 deletions source/games/duke/src/premap.cpp
Expand Up @@ -753,7 +753,6 @@ void donewgame(MapRecord* map, int sk)
auto p = &ps[0];
show_shareware = 26 * 34;

//ud.nextLevel = map;
ud.player_skill = sk;
ud.secretlevel = 0;
ud.from_bonus = 0;
Expand Down Expand Up @@ -915,8 +914,6 @@ void enterlevel(MapRecord *mi, int gamemode)
S_PlayLevelMusic(mi);
}

if (isShareware() && mi->levelNumber == 0 && ud.recstat != 2) FTA(QUOTE_F1HELP, &ps[myconnectindex]);

for (int i = connecthead; i >= 0; i = connectpoint2[i])
{
int pn = sector[ps[i].GetActor()->s->sectnum].floorpicnum;
Expand Down Expand Up @@ -978,6 +975,8 @@ void GameInterface::NewGame(MapRecord* map, int skill, bool)

donewgame(map, skill);
enterlevel(map, 0);
if (isShareware() && ud.recstat != 2) FTA(QUOTE_F1HELP, &ps[myconnectindex]);

PlayerColorChanged();
inputState.ClearAllInput();
gameaction = ga_level;
Expand Down
1 change: 0 additions & 1 deletion source/games/duke/src/types.h
Expand Up @@ -143,7 +143,6 @@ struct user_defs
int m_respawn_items, m_respawn_monsters, m_respawn_inventory, m_recstat, m_monsters_off;
int m_ffire, ffire, m_player_skill, multimode;
int player_skill, marker;
//MapRecord* nextLevel;

DDukeActor* cameraactor;

Expand Down
2 changes: 1 addition & 1 deletion source/games/exhumed/src/bubbles.cpp
Expand Up @@ -236,7 +236,7 @@ void DoBubbleMachines()
void BuildBubbleMachine(int nSprite)
{
if (nMachineCount >= kMaxMachines) {
I_Error("too many bubble machines in level %d\n", currentLevel->levelNumber);
I_Error("too many bubble machines in level %s\n", currentLevel->labelName.GetChars());
exit(-1);
}

Expand Down

0 comments on commit f3eb476

Please sign in to comment.