PRIVATE: re-enabled sound areas and fail if they are invalid

This commit is contained in:
neuromancer 2021-03-07 12:52:23 -03:00
parent b1e1494a12
commit 0eca2dcc22
2 changed files with 4 additions and 3 deletions

View file

@ -650,7 +650,8 @@ static void fSoundArea(ArgArray args) {
delete g_private->_phoneArea.surf; delete g_private->_phoneArea.surf;
g_private->_phoneArea = m; g_private->_phoneArea = m;
g_private->_masks.push_front(m); g_private->_masks.push_front(m);
} } else
error("Invalid type for SoundArea");
} }
static void fSafeDigit(ArgArray args) { static void fSafeDigit(ArgArray args) {

View file

@ -124,8 +124,8 @@ Symbol *SymbolMaps::lookupName(const char *n) {
return lookup(s, rects); return lookup(s, rects);
else { else {
debugC(1, kPrivateDebugCode, "WARNING: %s not defined", s.c_str()); debugC(1, kPrivateDebugCode, "WARNING: %s not defined", n);
return constant(STRING, 0, s.c_str()); return constant(STRING, 0, n);
} }
} }