diff options
author | uruk | 2013-12-17 14:11:35 +0100 |
---|---|---|
committer | uruk | 2013-12-17 14:11:35 +0100 |
commit | 30e27e11bb135b06d3f61450b5793106a695f719 (patch) | |
tree | 22b62504084fb1c7d157013c166df4842c9b4a96 /engines | |
parent | c6acf6c0496eb95f9e3da4eb074fcbf6e92adf88 (diff) | |
download | scummvm-rg350-30e27e11bb135b06d3f61450b5793106a695f719.tar.gz scummvm-rg350-30e27e11bb135b06d3f61450b5793106a695f719.tar.bz2 scummvm-rg350-30e27e11bb135b06d3f61450b5793106a695f719.zip |
AVALANCHE: Get rid of plotStone().
Diffstat (limited to 'engines')
-rw-r--r-- | engines/avalanche/nim.cpp | 8 | ||||
-rw-r--r-- | engines/avalanche/nim.h | 1 |
2 files changed, 3 insertions, 6 deletions
diff --git a/engines/avalanche/nim.cpp b/engines/avalanche/nim.cpp index a0c10a2e80..fad0bb71e5 100644 --- a/engines/avalanche/nim.cpp +++ b/engines/avalanche/nim.cpp @@ -188,14 +188,12 @@ void Nim::setup() { _old[i] = 0; } -void Nim::plotStone(byte x, byte y) { - _vm->_graphics->drawNimStone(64 + x * 7 * 8 + x * 8, 75 + y * 35); -} - void Nim::board() { for (int i = 0; i < 3; i++) for (int j = 0; j < _stones[i]; j++) - plotStone(j, i); + _vm->_graphics->drawNimStone(64 + j * 7 * 8 + j * 8, 75 + i * 35); + // It's practically the body of the Pascal function "plotstone()", reimplemented. + // It's the only place where we use it, so there's no reason to keep it separated as a function. _vm->_graphics->refreshScreen(); } diff --git a/engines/avalanche/nim.h b/engines/avalanche/nim.h index d80445efef..8b6faa1466 100644 --- a/engines/avalanche/nim.h +++ b/engines/avalanche/nim.h @@ -56,7 +56,6 @@ private: void chalk(int x, int y, Common::String text); void setup(); - void plotStone(byte x, byte y); void board(); void startMove(); void showChanges(); |