Group :: Games/Puzzles
RPM: black-box
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Patch: black-box-1.4.8-range.patch
Download
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;
}