freebsd-ports/games/orbital_eunuchs_sniper/files/patch-src-snipe2d.cpp
Alejandro Pulver 72658dc246 - Update to version 1.30.
- This version fixes a startup crash [1].
- Add a patch to fix crash when resuming from a paused game.

PR:		ports/116140 [1]
Submitted by:	Edwin Groothuis <edwin@mavetju.org>
2007-10-01 00:45:35 +00:00

20 lines
553 B
C++

--- src/snipe2d.cpp.orig Thu Oct 19 00:35:42 2006
+++ src/snipe2d.cpp Sun Sep 30 21:41:40 2007
@@ -800,7 +800,7 @@
{
if (Game.GameState != OESGAME_PLAY) return 0;
sniperbgm_release(Game.BGM);
- oes_audio_close();
+ //oes_audio_close();
SDL_WM_GrabInput(SDL_GRAB_OFF);
SDL_ShowCursor(1);
Game.GameState = OESGAME_PAUSED;
@@ -817,7 +817,7 @@
SDL_ShowCursor(0);
SDL_WM_GrabInput(SDL_GRAB_ON);
}
- oes_audio_open();
+ //oes_audio_open();
sniperbgm_grab(Game.BGM);
Game.GameState = OESGAME_UNPAUSED;
return 0;