Blame abuse_sdl-0.7.0-exit-intro-crash.patch
|
|
86946de |
--- abuse_sdl-0.7.0/src/game.cpp.shit 2006-08-24 16:39:45.000000000 +0200
|
|
|
86946de |
+++ abuse_sdl-0.7.0/src/game.cpp 2006-08-24 16:43:22.000000000 +0200
|
|
|
86946de |
@@ -1269,9 +1269,14 @@
|
|
|
86946de |
if( DEFINEDP( logo_snd ) && ( sound_avail & SFX_INITIALIZED ) )
|
|
|
86946de |
cash.sfx( lnumber_value( logo_snd ) )->play( sfx_volume );
|
|
|
86946de |
|
|
|
86946de |
- image blank( 2, 2 );
|
|
|
86946de |
- blank.clear();
|
|
|
86946de |
- eh->set_mouse_shape( blank.copy(), 0, 0 ); // don't show mouse
|
|
|
86946de |
+ /* This must be a dynamic allocated image because if it
|
|
|
86946de |
+ is not and the window gets closed during do_title, then
|
|
|
86946de |
+ exit() will try to delete (through the desctructor of
|
|
|
86946de |
+ image_list in image.cpp) the image on the stack -> boom. */
|
|
|
86946de |
+ image *blank = new image( 2, 2 );
|
|
|
86946de |
+ blank->clear();
|
|
|
86946de |
+ eh->set_mouse_shape( blank->copy(), 0, 0 ); // don't show mouse
|
|
|
86946de |
+ delete blank;
|
|
|
86946de |
fade_in( cash.img( cdc_logo ), 32 );
|
|
|
86946de |
|
|
|
86946de |
milli_wait( 900 );
|