aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Göffringmann2003-06-09 14:31:38 +0000
committerRobert Göffringmann2003-06-09 14:31:38 +0000
commit0fabcc6571132291d8f58153c2e97a920b17a03e (patch)
tree9720cfc26d3e236c96db434d00ecd9824920fc1d
parent5813724a33ab4228530d8cd9c34b52673bb03b53 (diff)
downloadscummvm-rg350-0fabcc6571132291d8f58153c2e97a920b17a03e.tar.gz
scummvm-rg350-0fabcc6571132291d8f58153c2e97a920b17a03e.tar.bz2
scummvm-rg350-0fabcc6571132291d8f58153c2e97a920b17a03e.zip
fixed SkyLogic bug and made font highlightning finally correct.
svn-id: r8416
-rw-r--r--sky/logic.cpp1
-rw-r--r--sky/text.cpp2
2 files changed, 2 insertions, 1 deletions
diff --git a/sky/logic.cpp b/sky/logic.cpp
index cecfb378b9..9f8b247e69 100644
--- a/sky/logic.cpp
+++ b/sky/logic.cpp
@@ -1257,6 +1257,7 @@ script:
case 19: // script_exit
return 0;
case 20: // restart_script
+ offset = 0;
goto script;
default:
error("Unknown script command: %d", command);
diff --git a/sky/text.cpp b/sky/text.cpp
index 5e4654fe0e..865db43d80 100644
--- a/sky/text.cpp
+++ b/sky/text.cpp
@@ -415,7 +415,7 @@ void SkyText::changeTextSpriteColour(uint8 *sprData, uint8 newCol) {
dataFileHeader *header = (dataFileHeader*)sprData;
sprData += sizeof(dataFileHeader);
for (uint16 cnt = 0; cnt < header->s_sp_size; cnt++)
- if (sprData[cnt] <= 241) sprData[cnt] = newCol;
+ if (sprData[cnt] >= 241) sprData[cnt] = newCol;
}
static const HuffTree huffTree_00267[] = {