1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-20 04:02:27 +00:00
freebsd-ports/games/torrent/files/patch-src-torrent.c
Pav Lucistnik ee44393910 You must keep the tiles from piling up to the top of the board or
they will crash down on you. But be warned they keep coming and
they come faster each time. Click on groups of three or more to
remove tiles. Additional "helper" tiles are given occasionally to
assist and some times hinder in the removal of tiles.

WWW: http://www.shiftygames.com/torrent/torrent.html

PR:		ports/88769
Submitted by:	Dmitry Marakasov <amdmi3@mail.ru>
2005-11-17 15:45:12 +00:00

49 lines
1.2 KiB
C

--- src/torrent.c.orig Thu Nov 17 16:18:29 2005
+++ src/torrent.c Thu Nov 17 16:19:26 2005
@@ -328,6 +328,8 @@
int x, y;
if(++level > LEVELSIZE) {
+ int y;
+
level--; //to keep from showing -1 on board
playSound(levelOverSound);
stateChanged = 1;
@@ -340,10 +342,11 @@
// Count number of empty layers and remaining blocks
- for(int y = 0; y < yBSize; y++) {
+ for(y = 0; y < yBSize; y++) {
+ int x;
int start = remaining;
- for(int x = 0; x < xBSize; x++) {
+ for(x = 0; x < xBSize; x++) {
if(board[y][x])
remaining++;
}
@@ -693,10 +696,10 @@
{
static char odd = 0;
if((scoreAdd || scoreTexts) && !drawing) {
+ struct scoreText * t = scoreTexts;
odd = !odd;
drawing = 1;
/* draw the text scores */
- struct scoreText * t = scoreTexts;
while(t && odd) {
SE_Redraw();
drawing = 0;
@@ -857,9 +860,9 @@
****************************************************/
int clickBomb(enum Color color, enum Color bombColor)
{
+ int c = 0, x, y;
playSound(bombClickSound);
isBomb = 1;
- int c = 0, x, y;
for(y = 0; y < yBSize; y++) {
for(x = 0; x < xBSize; x++) {
if(board[y][x] && (board[y][x]->color == color ||