diff options
| author | Max Horn | 2012-02-20 16:03:39 +0100 |
|---|---|---|
| committer | Max Horn | 2012-02-20 16:18:27 +0100 |
| commit | 4f8665fc836898ebf54fc73b1061125b748183bc (patch) | |
| tree | ae393cd0822fab01bdcc38bd003ab186955eb270 /engines/agi | |
| parent | 658080deeda79d20ea40643569fbcb072573e7cf (diff) | |
| download | scummvm-rg350-4f8665fc836898ebf54fc73b1061125b748183bc.tar.gz scummvm-rg350-4f8665fc836898ebf54fc73b1061125b748183bc.tar.bz2 scummvm-rg350-4f8665fc836898ebf54fc73b1061125b748183bc.zip | |
COMMON: Move isFoo functions to namespace Common, add doxygen comments
Diffstat (limited to 'engines/agi')
| -rw-r--r-- | engines/agi/agi.cpp | 2 | ||||
| -rw-r--r-- | engines/agi/wagparser.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/engines/agi/agi.cpp b/engines/agi/agi.cpp index e1c52c7c5e..e9c9645768 100644 --- a/engines/agi/agi.cpp +++ b/engines/agi/agi.cpp @@ -250,7 +250,7 @@ void AgiEngine::processEvents() { // Not a special key, so get the ASCII code for it key = event.kbd.ascii; - if (isAlpha(key)) { + if (Common::isAlpha(key)) { // Key is A-Z. // Map Ctrl-A to 1, Ctrl-B to 2, etc. if (event.kbd.flags & Common::KBD_CTRL) { diff --git a/engines/agi/wagparser.cpp b/engines/agi/wagparser.cpp index 00602420e2..61feac5d17 100644 --- a/engines/agi/wagparser.cpp +++ b/engines/agi/wagparser.cpp @@ -112,11 +112,11 @@ WagFileParser::~WagFileParser() { bool WagFileParser::checkAgiVersionProperty(const WagProperty &version) const { if (version.getCode() == WagProperty::PC_INTVERSION && // Must be AGI interpreter version property version.getSize() >= 3 && // Need at least three characters for a version number like "X.Y" - isDigit(version.getData()[0]) && // And the first character must be a digit + Common::isDigit(version.getData()[0]) && // And the first character must be a digit (version.getData()[1] == ',' || version.getData()[1] == '.')) { // And the second a comma or a period for (int i = 2; i < version.getSize(); i++) // And the rest must all be digits - if (!isDigit(version.getData()[i])) + if (!Common::isDigit(version.getData()[i])) return false; // Bail out if found a non-digit after the decimal point return true; |
