![]() |
Logging Out - Printable Version +- Mirage Source (https://mirage-engine.uk/forums) +-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61) +--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18) +---- Forum: General (https://mirage-engine.uk/forums/forumdisplay.php?fid=17) +---- Thread: Logging Out (/showthread.php?tid=1858) |
Logging Out - Rian - 23-06-2008 So, I wanted to have a log out button which closes frmMirage and takes you back to frmMainMenu. It works, but frmMainMenu only flashes for a second, then the game closes. I can't seem to find where it's at, but I assume GameDestroy is being called somewhere. I removed it from Form Unload and Form Terminate in frmMirage. And I recall I similar problem and a similar post like this. Anyone remember what was causing it? Re: Logging Out - Robin - 23-06-2008 The gamedestroy code at the bottom of GameLoop. It ends up going to that after you leave the game, so just place it somewhere else. Re: Logging Out - Rian - 23-06-2008 Ah, yeah. I suppose it makes more sense to just edit how the gamedestroy is handled. Re: Logging Out - Robin - 23-06-2008 Yup, then the code isn't inadvertently called. |