PRIVATE: re-enabled sound areas and fail if they are invalid
This commit is contained in:
parent
b1e1494a12
commit
0eca2dcc22
2 changed files with 4 additions and 3 deletions
|
@ -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) {
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue