[Scummvm-git-logs] scummvm master -> 23178a9b025aacd9005ffa74c0d85b67b2570eea
bluegr
noreply at scummvm.org
Thu Dec 3 01:31:31 UTC 2026
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .
Summary:
23178a9b02 WATCHMAKER: Define and use kPoundSymbol constant
Commit: 23178a9b025aacd9005ffa74c0d85b67b2570eea
https://github.com/scummvm/scummvm/commit/23178a9b025aacd9005ffa74c0d85b67b2570eea
Author: sumit77 (choudharyysumitt77 at gmail.com)
Date: 2026-12-03T03:31:25+02:00
Commit Message:
WATCHMAKER: Define and use kPoundSymbol constant
Changed paths:
engines/watchmaker/t2d/expr.cpp
diff --git a/engines/watchmaker/t2d/expr.cpp b/engines/watchmaker/t2d/expr.cpp
index 83ce9edab81..7e3de5db158 100644
--- a/engines/watchmaker/t2d/expr.cpp
+++ b/engines/watchmaker/t2d/expr.cpp
@@ -45,6 +45,8 @@
namespace Watchmaker {
+static constexpr char kPoundSymbol = (char)0xA3; // '£'
+
// Random integer in [0, max], like the original's rand() % (max + 1).
static int RandomInt(int max) {
if (max <= 0)
@@ -276,7 +278,7 @@ bool SilbRecon(char *Text, int tp, int LastVis, int NewSilb, int *CurrentSilb) {
if ((i != 0) && ((tp == TextLen) || ((tolower(Text[tp]) < 'a') || (tolower(Text[tp]) > 'z')))) Equal = TRUE;
break;
- case (char)0xA3: // '£' // TODO: Create a proper constant for the Pound symbol.
+ case kPoundSymbol: // '£'
if ((i == 0) && (tp > 0) && (Vocale(Text[tp - 1]))) Equal = TRUE;
if ((i != 0) && (Vocale(Text[tp]))) {
Equal = TRUE;
More information about the Scummvm-git-logs
mailing list