Strict mode: Changed several warnings due to logic bugs into errors. If an error pops up from these ones, please add the game where it occurred and the steps to reproduce the error before turning it into a warning
svn-id: r49973
This commit is contained in:
parent
9c1ec81d76
commit
db70d66e4a
12 changed files with 42 additions and 34 deletions
|
@ -373,14 +373,14 @@ reg_t kDoAvoider(EngineState *s, int argc, reg_t *argv) {
|
|||
s->r_acc = SIGNAL_REG;
|
||||
|
||||
if (!s->_segMan->isHeapObject(avoider)) {
|
||||
warning("DoAvoider() where avoider %04x:%04x is not an object", PRINT_REG(avoider));
|
||||
error("DoAvoider() where avoider %04x:%04x is not an object", PRINT_REG(avoider));
|
||||
return NULL_REG;
|
||||
}
|
||||
|
||||
client = readSelector(segMan, avoider, SELECTOR(client));
|
||||
|
||||
if (!s->_segMan->isHeapObject(client)) {
|
||||
warning("DoAvoider() where client %04x:%04x is not an object", PRINT_REG(client));
|
||||
error("DoAvoider() where client %04x:%04x is not an object", PRINT_REG(client));
|
||||
return NULL_REG;
|
||||
}
|
||||
|
||||
|
@ -389,7 +389,7 @@ reg_t kDoAvoider(EngineState *s, int argc, reg_t *argv) {
|
|||
|
||||
if (!s->_segMan->isHeapObject(mover)) {
|
||||
if (mover.segment) {
|
||||
warning("DoAvoider() where mover %04x:%04x is not an object", PRINT_REG(mover));
|
||||
error("DoAvoider() where mover %04x:%04x is not an object", PRINT_REG(mover));
|
||||
}
|
||||
return s->r_acc;
|
||||
}
|
||||
|
@ -450,7 +450,7 @@ reg_t kDoAvoider(EngineState *s, int argc, reg_t *argv) {
|
|||
angle -= 360;
|
||||
}
|
||||
|
||||
warning("DoAvoider failed for avoider %04x:%04x", PRINT_REG(avoider));
|
||||
error("DoAvoider failed for avoider %04x:%04x", PRINT_REG(avoider));
|
||||
} else {
|
||||
int heading = readSelectorValue(segMan, client, SELECTOR(heading));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue