diff options
Diffstat (limited to 'klines/field.cpp')
-rw-r--r-- | klines/field.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/klines/field.cpp b/klines/field.cpp index d8da8ec7..22211b76 100644 --- a/klines/field.cpp +++ b/klines/field.cpp @@ -19,8 +19,8 @@ #include "cfg.h" #include "field.moc" -Field::Field(TQWidget* parent, const char* name) - : TQWidget( parent, name ) +Field::Field(TQWidget* tqparent, const char* name) + : TQWidget( tqparent, name ) { clearField(); } @@ -73,7 +73,7 @@ void Field::putBall(int x, int y, char color) if( checkBounds(x,y) ){ field[y][x].setColor(color); erase5Balls(); - repaint(FALSE); + tqrepaint(FALSE); } }*/ void Field::moveBall(int xa, int ya, int xb, int yb) @@ -184,10 +184,10 @@ int Field::calcPosScore(int x, int y, int whatIf) int score = -10; int color = field[y][x].getColor(); field[y][x].setColor(whatIf); - score = QMAX(score, calcRun(x, y-4, 0, 1)); - score = QMAX(score, calcRun(x-4, y-4, 1, 1)); - score = QMAX(score, calcRun(x-4, y, 1, 0)); - score = QMAX(score, calcRun(x-4, y+4, 1, -1)); + score = TQMAX(score, calcRun(x, y-4, 0, 1)); + score = TQMAX(score, calcRun(x-4, y-4, 1, 1)); + score = TQMAX(score, calcRun(x-4, y, 1, 0)); + score = TQMAX(score, calcRun(x-4, y+4, 1, -1)); field[y][x].setColor(color); return score; } |