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
509e5be5a7
commit
0fde6445d4
|
@ -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
|
||||
--------
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue