Skip to content

Commit

Permalink
TONY: Janitorial - remove trailing spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Strangerke committed Aug 28, 2012
1 parent 56f4bc0 commit d2b33ca
Show file tree
Hide file tree
Showing 11 changed files with 94 additions and 94 deletions.
8 changes: 4 additions & 4 deletions engines/tony/game.cpp
Expand Up @@ -1513,8 +1513,8 @@ int RMPointer::curAction() {
return _nCurPointer;
}

/**
* Show the cursor
/**
* Show the cursor
*/
void RMPointer::showCursor() {
if (!CursorMan.isVisible()) {
Expand All @@ -1524,8 +1524,8 @@ void RMPointer::showCursor() {
}
}

/**
* Hide the cursor
/**
* Hide the cursor
*/
void RMPointer::hideCursor() {
if (CursorMan.isVisible()) {
Expand Down
16 changes: 8 additions & 8 deletions engines/tony/mpal/expr.cpp
Expand Up @@ -88,7 +88,7 @@ typedef struct {
byte type; // Tipo di oggetto (vedi enum ExprListTypes)
byte unary; // Unary operatore (NON SUPPORTATO)

union {
union {
int num; // Numero (se type==ELT_NUMBER)
char *name; // Nome variabile (se type==ELT_VAR)
HGLOBAL son; // Handle a espressione (type==ELT_PARENTH)
Expand Down Expand Up @@ -179,7 +179,7 @@ static int Compute(int a, int b, byte symbol) {
GLOBALS._mpalError = 1;
break;
}

return 0;
}

Expand Down Expand Up @@ -211,7 +211,7 @@ static void solve(LPEXPRESSION one, int num) {


/**
* Calculates the result of a mathematical expression, replacing the current
* Calculates the result of a mathematical expression, replacing the current
* value of any variable.
*
* @param expr Pointer to an expression duplicated by DuplicateExpression
Expand Down Expand Up @@ -253,7 +253,7 @@ static int evaluateAndFreeExpression(byte *expr) {
* Parses a mathematical expression from the MPC file
*
* @param buf Buffer containing the expression to evaluate
* @param h Pointer to a handle that, at the end of execution,
* @param h Pointer to a handle that, at the end of execution,
* will point to the area of memory containing the parsed expression
* @returns Pointer to the buffer immediately after the expression, or NULL if error.
*/
Expand Down Expand Up @@ -377,15 +377,15 @@ bool compareExpressions(HGLOBAL h1, HGLOBAL h2) {
return false;
}
break;

case ELT_VAR:
if (strcmp(one->val.name, two->val.name) != 0) {
globalUnlock(h1);
globalUnlock(h2);
return false;
}
break;

case ELT_PARENTH:
if (!compareExpressions(one->val.son, two->val.son)) {
globalUnlock(h1);
Expand All @@ -395,13 +395,13 @@ bool compareExpressions(HGLOBAL h1, HGLOBAL h2) {
break;
}

++one;
++one;
++two;
}

globalUnlock(h1);
globalUnlock(h2);

return true;
}

Expand Down
2 changes: 1 addition & 1 deletion engines/tony/mpal/expr.h
Expand Up @@ -43,7 +43,7 @@ namespace MPAL {
* Parses a mathematical expression from the MPC file
*
* @param buf Buffer containing the expression to evaluate
* @param h Pointer to a handle that, at the end of execution,
* @param h Pointer to a handle that, at the end of execution,
* will point to the area of memory containing the parsed expression
* @returns Pointer to the buffer immediately after the expression, or NULL if error.
*/
Expand Down
8 changes: 4 additions & 4 deletions engines/tony/mpal/loadmpc.cpp
Expand Up @@ -157,7 +157,7 @@ static const byte *parseDialog(const byte *lpBuf, LPMPALDIALOG lpmdDialog) {
/* Periodi */
num = READ_LE_UINT16(lpBuf);
lpBuf += 2;

if (num >= MAX_PERIODS_PER_DIALOG - 1)
error("Too much periods in dialog #%d", lpmdDialog->nObj);

Expand Down Expand Up @@ -252,7 +252,7 @@ static const byte *parseDialog(const byte *lpBuf, LPMPALDIALOG lpmdDialog) {
}
}

if (kk == curCmd) {
if (kk == curCmd) {
lpmdDialog->_group[i].CmdNum[j] = curCmd;
curCmd++;
}
Expand Down Expand Up @@ -445,7 +445,7 @@ static const byte *parseItem(const byte *lpBuf, LPMPALITEM lpmiItem) {
}
}

if (kk == curCmd) {
if (kk == curCmd) {
lpmiItem->Action[i].CmdNum[j] = curCmd;
curCmd++;

Expand Down Expand Up @@ -520,7 +520,7 @@ static const byte *ParseLocation(const byte *lpBuf, LPMPALLOCATION lpmlLocation)
//@{

/**
* Reads and interprets the MPC file, and create structures for various directives
* Reads and interprets the MPC file, and create structures for various directives
* in the global variables
*
* @param lpBuf Buffer containing the MPC file data, excluding the header.
Expand Down
2 changes: 1 addition & 1 deletion engines/tony/mpal/loadmpc.h
Expand Up @@ -38,7 +38,7 @@ namespace MPAL {
\****************************************************************************/

/**
* Reads and interprets the MPC file, and create structures for various directives
* Reads and interprets the MPC file, and create structures for various directives
* in the global variables
*
* @param lpBuf Buffer containing the MPC file data, excluding the header.
Expand Down

0 comments on commit d2b33ca

Please sign in to comment.