summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSteven Fuller <relnev@icculus.org>2001-11-06 01:12:23 +0000
committerPatryk Obara <dreamer.tan@gmail.com>2019-08-20 02:22:36 +0200
commit949ffcfd44807915ff2ab0bcc5f81032b5708578 (patch)
tree9fb86ec60093b83b44c17cea4fb1a8f23c0ab1ec /src
parentf0647dd7c8db89aa972e7d5eadbc6bc041a14594 (diff)
Fixed the mistake causing new episodes to be gained for free.
Diffstat (limited to 'src')
-rw-r--r--src/main.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index 3e75810..12cab30 100644
--- a/src/main.c
+++ b/src/main.c
@@ -676,8 +676,7 @@ int InitSDL()
int main(int argc, char *argv[])
{
- int menusActive = 0;
- int thisLevelHasBeenCompleted = 0;
+
InitSDL();
@@ -781,7 +780,10 @@ while(AvP_MainMenus())
SetBriefingTextToBlank();
#endif
{
-
+ int menusActive = 0;
+ int thisLevelHasBeenCompleted = 0;
+
+ /* turn off any special effects */
d3d_light_ctrl.ctrl = LCCM_NORMAL;
d3d_overlay_ctrl.ctrl = OCCM_NORMAL;