Fixed integer overflow problem on Origin2000, where "int" is 4