Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37778077
en ru br
ALT Linux repositórios
S:1.4.8-alt1.qa1

Group :: Jogos/Enigmas
RPM: black-box

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: black-box-1.4.8-range.patch
Download


--- src/blackbox.c.orig	2009-01-04 09:32:28 +0000
+++ src/blackbox.c	2009-01-04 09:32:28 +0000
@@ -745,15 +745,15 @@
   {
 //block highlighting
   case SDL_BUTTON(3):
-    if ((light[div(mouse_x+25,50).quot-2][div(mouse_y+25,50).quot-2]==0)
-       &&(div(mouse_x+25,50).quot>1)&&(div(mouse_y+25,50).quot>1)
-       &&(div(mouse_x+25,50).quot<13)&&(div(mouse_y+25,50).quot<11))
+    if ((div(mouse_x+25,50).quot>1)&&(div(mouse_y+25,50).quot>1)
+       &&(div(mouse_x+25,50).quot<13)&&(div(mouse_y+25,50).quot<11)
+       &&(light[div(mouse_x+25,50).quot-2][div(mouse_y+25,50).quot-2]==0))
     {
       light[div(mouse_x+25,50).quot-2][div(mouse_y+25,50).quot-2]=1;
     }else
-    if ((light[div(mouse_x+25,50).quot-2][div(mouse_y+25,50).quot-2]==1)
-       &&(div(mouse_x+25,50).quot>1)&&(div(mouse_y+25,50).quot>1)
-       &&(div(mouse_x+25,50).quot<13)&&(div(mouse_y+25,50).quot<11))
+    if ((div(mouse_x+25,50).quot>1)&&(div(mouse_y+25,50).quot>1)
+       &&(div(mouse_x+25,50).quot<13)&&(div(mouse_y+25,50).quot<11)
+       &&(light[div(mouse_x+25,50).quot-2][div(mouse_y+25,50).quot-2]==1))
     {
       light[div(mouse_x+25,50).quot-2][div(mouse_y+25,50).quot-2]=0;
     }
@@ -800,15 +800,15 @@
   break;
   case SDL_BUTTON(1):
 //think
-    if ((think[div(mouse_x,50).quot-2][div(mouse_y,50).quot-2]==0)
-       &&(div(mouse_x,50).quot>1)&&(div(mouse_y,50).quot>1)
-       &&(div(mouse_x,50).quot<12)&&(div(mouse_y,50).quot<10))
+    if ((div(mouse_x,50).quot>1)&&(div(mouse_y,50).quot>1)
+       &&(div(mouse_x,50).quot<12)&&(div(mouse_y,50).quot<10)
+       &&(think[div(mouse_x,50).quot-2][div(mouse_y,50).quot-2]==0))
     {
       think[div(mouse_x,50).quot-2][div(mouse_y,50).quot-2]=1;
     } else
-    if ((think[div(mouse_x,50).quot-2][div(mouse_y,50).quot-2]==1)
-       &&(div(mouse_x,50).quot>1)&&(div(mouse_y,50).quot>1)
-       &&(div(mouse_x,50).quot<12)&&(div(mouse_y,50).quot<10))
+    if ((div(mouse_x,50).quot>1)&&(div(mouse_y,50).quot>1)
+       &&(div(mouse_x,50).quot<12)&&(div(mouse_y,50).quot<10)
+       &&(think[div(mouse_x,50).quot-2][div(mouse_y,50).quot-2]==1))
     {
       think[div(mouse_x,50).quot-2][div(mouse_y,50).quot-2]=0;
     }
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009