When inregulary exiting a level by warp cheat, set canvas to NULL so cockpit canvas will not apply furthermore
This commit is contained in:
parent
5a8ff256ae
commit
6a81273645
|
@ -3,6 +3,7 @@ D2X-Rebirth Changelog
|
|||
20100624
|
||||
--------
|
||||
arch/ogl/gr.c, arch/sdl/gr.c, include/gr.h, main/menu.c: Added function to list valid resolutions and build resolutions menu dynamically with the resulting list
|
||||
main/gamecntl.c: When inregulary exiting a level by warp cheat, set canvas to NULL so cockpit canvas will not apply furthermore
|
||||
|
||||
20100623
|
||||
--------
|
||||
|
|
|
@ -1723,6 +1723,7 @@ void FinalCheats(int key)
|
|||
if (item != -1) {
|
||||
new_level_num = atoi(m.text);
|
||||
if (new_level_num!=0 && new_level_num>=0 && new_level_num<=Last_level) {
|
||||
gr_set_current_canvas(NULL); // get out of cockpit canvas
|
||||
StartNewLevel(new_level_num, 0);
|
||||
do_cheat_penalty();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue