(svn r20332) -Add: [NewGRF] AdvVarAct2 operators for SHL, SHR and SAR.

This commit is contained in:
frosch
2010-08-02 23:12:43 +00:00
parent 689d4bef04
commit 0e5c562da4
2 changed files with 6 additions and 0 deletions

View File

@@ -124,6 +124,9 @@ static U EvalAdjustT(const DeterministicSpriteGroupAdjust *adjust, ResolverObjec
case DSGA_OP_ROR: return RotateRight(last_value, value);
case DSGA_OP_SCMP: return ((S)last_value == (S)value) ? 1 : ((S)last_value < (S)value ? 0 : 2);
case DSGA_OP_UCMP: return ((U)last_value == (U)value) ? 1 : ((U)last_value < (U)value ? 0 : 2);
case DSGA_OP_SHL: return (U)last_value << (U)value;
case DSGA_OP_SHR: return (U)last_value >> (U)value;
case DSGA_OP_SAR: return (S)last_value >> (U)value;
default: return value;
}
}