File diff r25889:095192372b19 → r25890:31b085404537
src/newgrf_engine.cpp
Show inline comments
 
@@ -1189,7 +1189,7 @@ int GetEngineProperty(EngineID engine, P
 
	if (callback != CALLBACK_FAILED) {
 
		if (is_signed) {
 
			/* Sign extend 15 bit integer */
 
			return static_cast<int16>(callback << 1) >> 1;
 
			return static_cast<int16>(callback << 1) / 2;
 
		} else {
 
			return callback;
 
		}