Re: Crack AstroMenace players needed!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dnia 2007-12-07, o godz. 09:42:35 "Jon Ciesla" <limb@xxxxxxxxxxxx> napisał(a):

> How dare you not solve ALL of my problems!  ;)
I'm terribly sorry! ;) Try the attached patch. I'm not really sure, what
consequences (other than fixing the stuck mouse issue) will it cause. It's my
second hour with AstroMenace code (or any SDL game code) and I don't know
Russian at all (almost), so it really should be reviewed by someone
understanding the comments and/or game variables.

Basically, mouse is stuck because the game runs SDL_WarpMouse in the main
loop, because it's re-appearing the final score window all the time. In the
full screen mode, this is not a problem, but when run in the window, there is
additional code for grabbing the mouse when playing and ungrabbing when using
the menus. That code also got run in a loop. I was trying to be smart instead
of just commenting out the SDL_WarpMouse line. Please check if I haven't
broken anything in the process.

Lam
diff -Naur AstroMenaceSourceCode-orig/AstroMenaceSource/Game/Game.cpp AstroMenaceSourceCode/AstroMenaceSource/Game/Game.cpp
--- AstroMenaceSourceCode-orig/AstroMenaceSource/Game/Game.cpp	2007-09-30 13:12:43.000000000 +0200
+++ AstroMenaceSourceCode/AstroMenaceSource/Game/Game.cpp	2007-12-07 19:52:39.000000000 +0100
@@ -2044,7 +2044,7 @@
 	if (!isDialogBoxDrawing())
 	if (PlayerFighter != 0) // еÑ?ли не Ñ?били
 	{
-		if (vw_GetKeys(SDLK_ESCAPE) || GameMissionCompleteStatus)
+		if (vw_GetKeys(SDLK_ESCAPE) || (GameMissionCompleteStatus && !GameMenu))
 		{
 			bool NeedPlaySfx = true;
 			// еÑ?ли нÑ?жно показаÑ?Ñ? конеÑ? игÑ?Ñ?, вÑ?е Ñ?авно его показÑ?ваем

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Fedora-games-list mailing list
Fedora-games-list@xxxxxxxxxx
http://www.redhat.com/mailman/listinfo/fedora-games-list

[Index of Archives]     [Fedora Music]     [Fedora Extras]     [Kernel]     [Fedora Desktop]     [Fedora Directory]     [PAM]     [CentOS]     [Gimp]     [Yosemite News]     [Yosemite Camping]

  Powered by Linux