[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdegames/kshisen
From: Dave Corrie <kde () davecorrie ! com>
Date: 2003-05-26 9:19:28
[Download RAW message or body]
CVS commit by davec:
Remove the pointless 'trying' variable (it doesn't actually vary...).
M +9 -28 board.cpp 1.63
M +0 -1 board.h 1.34
--- kdegames/kshisen/board.cpp #1.62:1.63
@@ -71,5 +71,4 @@ Board::Board(QWidget *parent) : QWidget(
{
paused = false;
- trying = false;
_solvable_flag = true;
grav_col_1 = -1;
@@ -342,10 +341,7 @@ void Board::newGame()
if(getShuffle() == 0)
{
- if(!trying)
- {
update();
starttime = time((time_t *)0);
emit changed();
- }
return;
}
@@ -368,10 +364,7 @@ void Board::newGame()
if(!_solvable_flag)
{
- if(!trying)
- {
update();
starttime = time((time_t *)0);
emit changed();
- }
return;
}
@@ -431,10 +424,7 @@ void Board::newGame()
delete oldfield;
- if(!trying)
- {
update();
starttime = time((time_t *)0);
emit changed();
- }
}
@@ -461,7 +451,4 @@ bool Board::isTileHighlighted(int x, int
void Board::updateField(int x, int y, bool erase)
{
- if(trying)
- return;
-
QRect r(xOffset() + x * tiles.tileWidth(),
yOffset() + y * tiles.tileHeight(),
@@ -667,7 +654,4 @@ bool Board::findSimplePath(int x1, int y
void Board::drawConnection(int timeout)
{
- if(trying)
- return;
-
if(connection.empty())
return;
@@ -701,7 +685,4 @@ void Board::drawConnection(int timeout)
void Board::undrawConnection()
{
- if(trying)
- return;
-
if(grav_col_1 != -1 || grav_col_2 != -1)
{
--- kdegames/kshisen/board.h #1.33:1.34
@@ -179,5 +179,4 @@ private:
time_t pause_start;
- bool trying;
bool gravity_flag;
bool _solvable_flag;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic