From dd0a6fe0e3258ca1e71051705b5603fd8d9ca3fd Mon Sep 17 00:00:00 2001 From: RichieSams Date: Sun, 22 Sep 2013 15:52:24 -0500 Subject: [PATCH] ZVISION: Convert hardcoded number to an anonymous enum --- engines/zvision/string_manager.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/engines/zvision/string_manager.h b/engines/zvision/string_manager.h index e3539a732c0..b67573b3a32 100644 --- a/engines/zvision/string_manager.h +++ b/engines/zvision/string_manager.h @@ -60,10 +60,13 @@ private: Common::List 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 _fonts; static const Graphics::PixelFormat _pixelFormat565;