Skip to content
This repository has been archived by the owner on May 5, 2021. It is now read-only.

Commit

Permalink
- Added proper next level links for Doom1 secret maps (formerly just …
Browse files Browse the repository at this point in the history
…dumped the player into the next episode, completely wrong behavior)
  • Loading branch information
GTD-Carthage committed Apr 26, 2019
1 parent 2a4864f commit a2c8ba9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/modules/zdoom_specials.lua
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,17 @@ function ZDOOM_SPECIALS.do_special_stuff()
secret_level_line = ''
end

-- next maps for secret levels
if map_num == 9 then
next_level_line = ' next = ' .. ZDOOM_SPECIALS.DOOM1_MAP_NOMENCLATURE[4] .. "\n"
elseif map_num == 18 then
next_level_line = ' next = ' .. ZDOOM_SPECIALS.DOOM1_MAP_NOMENCLATURE[15] .. "\n"
elseif map_num == 27 then
next_level_line = ' next = ' .. ZDOOM_SPECIALS.DOOM1_MAP_NOMENCLATURE[25] .. "\n"
elseif map_num == 36 then
next_level_line = ' next = ' .. ZDOOM_SPECIALS.DOOM1_MAP_NOMENCLATURE[30] .. "\n"
end

-- skip for secret levels
if map_num == 8 then
next_level_line = ' next = "EndGame1"\n'
Expand Down

0 comments on commit a2c8ba9

Please sign in to comment.