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 509e5be5a7
commit 0fde6445d4
2 changed files with 4 additions and 0 deletions

View file

@ -3,6 +3,7 @@ D1X-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

@ -1103,7 +1103,10 @@ 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);
}
}
cheat_warp_index = 0;