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?
Posts: 2,742
Threads: 115
Joined: Jun 2006
Reputation:
0
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.
Quote:Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?
Ah, yeah. I suppose it makes more sense to just edit how the gamedestroy is handled.
Posts: 2,742
Threads: 115
Joined: Jun 2006
Reputation:
0
Yup, then the code isn't inadvertently called.
Quote:Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?