aboutsummaryrefslogtreecommitdiff
path: root/scumm/verbs.cpp
diff options
context:
space:
mode:
authorMax Horn2005-05-24 00:29:29 +0000
committerMax Horn2005-05-24 00:29:29 +0000
commit85ceaba67574642b48d308038a6af3fd3c53d108 (patch)
tree9de6e6dbab807d755fb016edefed530a03d235dd /scumm/verbs.cpp
parent94f25b247abe35234f56ac1464d706e5ff36d9ab (diff)
downloadscummvm-rg350-85ceaba67574642b48d308038a6af3fd3c53d108.tar.gz
scummvm-rg350-85ceaba67574642b48d308038a6af3fd3c53d108.tar.bz2
scummvm-rg350-85ceaba67574642b48d308038a6af3fd3c53d108.zip
Fix for bug #705221 (FT: German ß is too high); based on the CVS logs for this (the order was changed back and forth a couple times) this change could cause regressions; if so, we need to address them properly, not by fiddling with this code around
svn-id: r18240
Diffstat (limited to 'scumm/verbs.cpp')
-rw-r--r--scumm/verbs.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/scumm/verbs.cpp b/scumm/verbs.cpp
index 014a773c15..73b863b186 100644
--- a/scumm/verbs.cpp
+++ b/scumm/verbs.cpp
@@ -336,7 +336,12 @@ void ScummEngine::redrawVerbs() {
if (_cursor.state > 0)
verb = findVerbAtPos(_mouse.x, _mouse.y);
- for (i = _numVerbs-1; i >= 0; i--) {
+ // Iterate over all verbs.
+ // Note: This is the correct order (at least for MI EGA, MI2, Full Throttle).
+ // Do not change it! If you discover, based on disasm, that some game uses
+ // another (e.g. the reverse) order here, you have to use an if/else construct
+ // to add it as a special case!
+ for (i = 0; i < _numVerbs; i++) {
if (i == verb && _verbs[verb].hicolor)
drawVerb(i, 1);
else