From 0fabcc6571132291d8f58153c2e97a920b17a03e Mon Sep 17 00:00:00 2001 From: Robert Göffringmann Date: Mon, 9 Jun 2003 14:31:38 +0000 Subject: fixed SkyLogic bug and made font highlightning finally correct. svn-id: r8416 --- sky/logic.cpp | 1 + sky/text.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'sky') 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[] = { -- cgit v1.2.3