Skip to content

Commit

Permalink
TONY: Translate some remaining Italian comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Strangerke committed Aug 29, 2012
1 parent 985151f commit 766eade
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 17 deletions.
12 changes: 6 additions & 6 deletions engines/tony/loc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,19 +57,19 @@ void RMPattern::RMSlot::readFromStream(Common::ReadStream &ds, bool bLOX) {
type = ds.readByte();
_type = (RMPattern::RMSlotType)type;

// Dati
// Data
_data = ds.readSint32LE();

// Posizione
// Position
_pos.readFromStream(ds);

// Flag generica
// Generic flag
_flag = ds.readByte();
}


/****************************************************************************\
* Metodi di RMPattern
* RMPattern Methods
\****************************************************************************/

void RMPattern::readFromStream(Common::ReadStream &ds, bool bLOX) {
Expand Down Expand Up @@ -547,7 +547,7 @@ void RMItem::readFromStream(Common::SeekableReadStream &ds, bool bLOX) {
if (_bInitCurPattern)
setPattern(mpalQueryItemPattern(_mpalCode));

// Initailise the current activation state
// Initialize the current activation state
_bIsActive = mpalQueryItemIsActive(_mpalCode);
}

Expand Down Expand Up @@ -883,7 +883,7 @@ short RMCharacter::findPath(short source, short destination) {
static RMBox BOX[MAXBOXES]; // Matrix of adjacent boxes
static short COSTO[MAXBOXES]; // Cost per node
static short VALIDO[MAXBOXES]; // 0:Invalid 1:Valid 2:Saturated
static short NEXT[MAXBOXES]; // Prossimo Nodo
static short NEXT[MAXBOXES]; // Next node
short i, j, k, costominimo, fine, errore = 0;
RMBoxLoc *cur;

Expand Down
13 changes: 5 additions & 8 deletions engines/tony/mpal/loadmpc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@
* Copyright (c) 1997-2003 Nayma Software
*/

/*
#include "lzo1x.h"
*/
#include "mpal.h"
#include "mpaldll.h"
#include "memory.h"
Expand Down Expand Up @@ -148,7 +145,7 @@ static const byte *parseDialog(const byte *lpBuf, LPMPALDIALOG lpmdDialog) {
lpmdDialog->nObj = READ_LE_UINT32(lpBuf);
lpBuf += 4;

/* Periodi */
/* Periods */
uint32 num = READ_LE_UINT16(lpBuf);
lpBuf += 2;

Expand All @@ -169,7 +166,7 @@ static const byte *parseDialog(const byte *lpBuf, LPMPALDIALOG lpmdDialog) {
lpmdDialog->_periodNums[i] = 0;
lpmdDialog->_periods[i] = NULL;

/* Gruppi */
/* Groups */
num = READ_LE_UINT16(lpBuf);
lpBuf += 2;
uint32 curCmd = 0;
Expand Down Expand Up @@ -347,7 +344,7 @@ static const byte *parseItem(const byte *lpBuf, LPMPALITEM lpmiItem) {
lpmiItem->nActions=*lpBuf;
lpBuf++;

/* Alloca le azioni */
/* Allocation action */
if (lpmiItem->nActions > 0)
lpmiItem->Action = (ItemAction *)globalAlloc(GMEM_FIXED | GMEM_ZEROINIT, sizeof(struct ItemAction) * (int)lpmiItem->nActions);

Expand Down Expand Up @@ -544,7 +541,7 @@ bool ParseMpc(const byte *lpBuf) {
GLOBALS._lpmvVars->dwVal = READ_LE_UINT32(lpBuf);
lpBuf += 4;

lpBuf++; // Salta 'ext'
lpBuf++; // Skip 'ext'
GLOBALS._lpmvVars++;
}

Expand Down Expand Up @@ -688,7 +685,7 @@ bool ParseMpc(const byte *lpBuf) {

for (uint16 i = 0; i < GLOBALS._nScripts; i++) {
if ((lpBuf = ParseScript(lpBuf + 7, &GLOBALS._lpmsScripts[i])) == NULL)
return false;
return false;

// Sort the various moments of the script
//qsort(
Expand Down
3 changes: 1 addition & 2 deletions engines/tony/mpal/mpal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -920,8 +920,7 @@ void LocationPollThread(CORO_PARAM, const void *param) {

/* Here's the main loop */
while (1) {
/* Cerchiamo tra tutte le idle actions quella a cui manca meno tempo per
l'esecuzione */
// Searching for idle actions requiring time to execute
_ctx->curTime = g_vm->getTime();
_ctx->dwSleepTime = (uint32)-1L;

Expand Down
2 changes: 1 addition & 1 deletion engines/tony/mpal/mpal.h
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ typedef LPITEMIRQFUNCTION* LPLPITEMIRQFUNCTION;
/**
* Gets the numerical value of a global variable
*
* @param lpszVarName Nome della variabile (ASCIIZ)
* @param lpszVarName Variable name (ASCIIZ)
* @returns Global variable value
* @remarks This query was implemented for debugging. The program,
* if well designed, should not need to access variables from
Expand Down

0 comments on commit 766eade

Please sign in to comment.