aboutsummaryrefslogtreecommitdiff
path: root/engines/zvision
diff options
context:
space:
mode:
authorRichieSams2013-09-22 15:52:24 -0500
committerRichieSams2013-09-22 15:52:24 -0500
commitdd0a6fe0e3258ca1e71051705b5603fd8d9ca3fd (patch)
treeab27db137661ac9409b195b3b1a900a8aaa7506e /engines/zvision
parent713baa37695104e2aa23c4e821b2aeb5ce41a576 (diff)
downloadscummvm-rg350-dd0a6fe0e3258ca1e71051705b5603fd8d9ca3fd.tar.gz
scummvm-rg350-dd0a6fe0e3258ca1e71051705b5603fd8d9ca3fd.tar.bz2
scummvm-rg350-dd0a6fe0e3258ca1e71051705b5603fd8d9ca3fd.zip
ZVISION: Convert hardcoded number to an anonymous enum
Diffstat (limited to 'engines/zvision')
-rw-r--r--engines/zvision/string_manager.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/engines/zvision/string_manager.h b/engines/zvision/string_manager.h
index e3539a732c..b67573b3a3 100644
--- a/engines/zvision/string_manager.h
+++ b/engines/zvision/string_manager.h
@@ -60,10 +60,13 @@ private:
Common::List<TextFragment> fragments;
};
+ enum {
+ NUM_TEXT_LINES = 56 // Max number of lines in a .str file. We hardcode this number because we know ZNem uses 42 strings and ZGI uses 56
+ };
+
private:
ZVision *_engine;
- // NOTE: We hardcode this number because we know ZNem uses 42 strings and ZGI uses 56
- InGameText _inGameText[56];
+ InGameText _inGameText[NUM_TEXT_LINES];
Common::HashMap<Common::String, TruetypeFont *> _fonts;
static const Graphics::PixelFormat _pixelFormat565;