When inregulary exiting a level by warp cheat, set canvas to NULL so cockpit canvas will not apply furthermore

This commit is contained in:
zicodxx 2010-06-24 14:00:01 +00:00
parent 5a8ff256ae
commit 6a81273645
2 changed files with 2 additions and 0 deletions

View file

@ -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
--------

View file

@ -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();
}