Fix sign issues, that caused combat issues in Elvira 1

svn-id: r24553
This commit is contained in:
Travis Howell 2006-10-28 12:33:49 +00:00
parent c85c37561d
commit dfd57406ff

View file

@ -243,14 +243,16 @@ void AGOSEngine::o_notEq() {
void AGOSEngine::o_gt() { void AGOSEngine::o_gt() {
// 15: is greater // 15: is greater
uint tmp = getNextVarContents(); int16 tmp1 = getNextVarContents();
setScriptCondition(tmp > getVarOrWord()); int16 tmp2 = getVarOrWord();
setScriptCondition(tmp1 > tmp2);
} }
void AGOSEngine::o_lt() { void AGOSEngine::o_lt() {
// 16: is less // 16: is less
uint tmp = getNextVarContents(); int16 tmp1 = getNextVarContents();
setScriptCondition(tmp < getVarOrWord()); int16 tmp2 = getVarOrWord();
setScriptCondition(tmp1 < tmp2);
} }
void AGOSEngine::o_eqf() { void AGOSEngine::o_eqf() {
@ -267,14 +269,16 @@ void AGOSEngine::o_notEqf() {
void AGOSEngine::o_ltf() { void AGOSEngine::o_ltf() {
// 19: is greater f // 19: is greater f
uint tmp = getNextVarContents(); int16 tmp1 = getNextVarContents();
setScriptCondition(tmp < getNextVarContents()); int16 tmp2 = getNextVarContents();
setScriptCondition(tmp1 < tmp2);
} }
void AGOSEngine::o_gtf() { void AGOSEngine::o_gtf() {
// 20: is less f // 20: is less f
uint tmp = getNextVarContents(); int16 tmp1 = getNextVarContents();
setScriptCondition(tmp > getNextVarContents()); int16 tmp2 = getNextVarContents();
setScriptCondition(tmp1 > tmp2);
} }
void AGOSEngine::o_chance() { void AGOSEngine::o_chance() {