Commit 394e3fc3 authored by James Greenhalgh's avatar James Greenhalgh
Browse files

spelling: loose -> lose

svn path=/trunk/kdegames/ktron/; revision=234070
parent a9097671
......@@ -146,12 +146,12 @@ void KTron::showWinner(Player winner){
if(tron->isComputer(Both) || (winner != One && winner != Two))
return;
QString looserName = i18n("KTron");
int looser = Two;
QString loserName = i18n("KTron");
int loser = Two;
if(winner == Two)
looser = One;
if(!tron->isComputer(((Player)looser)))
looserName = playerName[looser];
loser = One;
if(!tron->isComputer(((Player)loser)))
loserName = playerName[loser];
QString winnerName = i18n("KTron");
if(!tron->isComputer(winner))
......@@ -161,8 +161,8 @@ void KTron::showWinner(Player winner){
statusBar()->message(message,MESSAGE_TIME);
message = i18n("%1 has won versus %2 with %3 : %4 points!");
message=message.arg(winnerName).arg(looserName);
message=message.arg(playerPoints[winner]).arg(playerPoints[looser]);
message=message.arg(winnerName).arg(loserName);
message=message.arg(playerPoints[winner]).arg(playerPoints[loser]);
KMessageBox::information(this, message, i18n("Winner"));
tron->newGame();
......
......@@ -260,16 +260,16 @@ void Tron::showWinner(Player player)
if(player != Both && changeWinnerColor)
{
int winner;
int looser;
int loser;
if(player==One)
{
winner=PLAYER1;
looser=PLAYER2;
loser=PLAYER2;
}
else
{
winner=PLAYER2;
looser=PLAYER1;
loser=PLAYER1;
}
for(i=0;i<fieldWidth;i++)
......@@ -279,7 +279,7 @@ void Tron::showWinner(Player player)
{
// change player
playfield[i][j] |= winner;
playfield[i][j] &= ~looser;
playfield[i][j] &= ~loser;
}
}
......@@ -850,7 +850,7 @@ void Tron::keyReleaseEvent(QKeyEvent * e)
}
// if playingfield looses keyboard focus, pause game
// if playingfield loses keyboard focus, pause game
void Tron::focusOutEvent(QFocusEvent *)
{
if(!gameEnded && !gamePaused)
......
......@@ -80,7 +80,7 @@ public slots:
void loadSettings();
signals:
void gameEnds(Player looser);
void gameEnds(Player loser);
void gameReset();
protected:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment