Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37434304
en ru br
Репозитории ALT
S:1.4.8-alt1.qa1
5.1: 1.4.8-alt1
www.altlinux.org/Changes

Группа :: Игры/Головоломки
Пакет: black-box

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: black-box-1.4.8-range.patch
Скачать


--- 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;
     }
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin