diff --git a/README b/README index e95ce1c..edbde0d 100644 --- a/README +++ b/README @@ -49,6 +49,10 @@ Create the MPConfig and User_Profiles directories if they do not exist. If you have the regular edition, add -DREGULAR_EDITION to CFLAGS. +If you get "Aborted" after starting a new game the second time or so, +try recompiling with gcc-3.0.2. It seems to have fixed it for me, but I'll +try to find a workaround that works with gcc-2.95. + relnev:~/avp/AvP Demo 3 - Alien$ ls aenglish.txt alienavp_huds/ alienfastfile/ avp_rifs/ MPConfig/ 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;