ZVISION: Convert hardcoded number to an anonymous enum

This commit is contained in:
RichieSams 2013-09-22 15:52:24 -05:00
parent 713baa3769
commit dd0a6fe0e3

View File

@ -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;