diff options
author | Max Horn | 2009-07-14 23:03:25 +0000 |
---|---|---|
committer | Max Horn | 2009-07-14 23:03:25 +0000 |
commit | 99fc508609e0def31b9e5c7b59e28fada54c0e1e (patch) | |
tree | eb237d9920221e0dfaf92c3ce10862d3ec91530d /engines/agos/pn.cpp | |
parent | 59b35ff5fbb00b47b473c8d0c5ff670bd500e347 (diff) | |
download | scummvm-rg350-99fc508609e0def31b9e5c7b59e28fada54c0e1e.tar.gz scummvm-rg350-99fc508609e0def31b9e5c7b59e28fada54c0e1e.tar.bz2 scummvm-rg350-99fc508609e0def31b9e5c7b59e28fada54c0e1e.zip |
AGOS: Some more cleanup and added some comments to the PN code
svn-id: r42494
Diffstat (limited to 'engines/agos/pn.cpp')
-rw-r--r-- | engines/agos/pn.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/agos/pn.cpp b/engines/agos/pn.cpp index fd88d63ec3..d92efa9077 100644 --- a/engines/agos/pn.cpp +++ b/engines/agos/pn.cpp @@ -269,16 +269,16 @@ void AGOSEngine_PN::processor() { _variableArray[16] = _quickshort[6]; _variableArray[17] = _quickshort[7]; _variableArray[19] = getptr(55L); + + // q indicates the process to run and is 0 the first time, + // but 1 later on (i.e., when we are "called" from badload()). setposition(q, 0); doline(0); } void AGOSEngine_PN::setqptrs() { - int a = 0; - - while (a < 11) { - _quickptr[a] = getlong(3L * a); - a++; + for (int i = 0; i < 11; ++i) { + _quickptr[i] = getlong(3 * i); } _quickptr[11] = getlong(58L); _quickptr[12] = getlong(61L); |