Files @ r25890:31b085404537
Branch filter:

Location: cpp/openttd-patchpack/source/regression/regression/info.nut

Michael Lutz
Fix 2183fd4d: [NewGRF] Use divide instead of right shift for signed numbers. (#9480)

"For negative a, the value of a >> b is implementation-defined (in most implementations, this performs arithmetic right shift, so that the result remains negative)."
class Regression extends AIInfo {
	function GetAuthor()      { return "OpenTTD NoAI Developers Team"; }
	function GetName()        { return "Regression"; }
	function GetShortName()   { return "REGR"; }
	function GetDescription() { return "This runs regression-tests on some commands. On the same map the result should always be the same."; }
	function GetVersion()     { return 1; }
	function GetAPIVersion()  { return "1.12"; }
	function GetDate()        { return "2007-03-18"; }
	function CreateInstance() { return "Regression"; }
	function UseAsRandomAI()  { return false; }
}

RegisterAI(Regression());