Changeset - r26963:779ace66ccbc
[Not reviewed]
master
0 2 0
glx22 - 22 months ago 2023-02-09 21:26:02
glx@openttd.org
Codechange: Use SQInteger for generic numbers in script_bridgelist
2 files changed with 3 insertions and 3 deletions:
0 comments (0 inline, 0 general)
src/script/api/script_bridgelist.cpp
Show inline comments
 
@@ -21,11 +21,11 @@ ScriptBridgeList::ScriptBridgeList()
 
	}
 
}
 

	
 
ScriptBridgeList_Length::ScriptBridgeList_Length(uint length)
 
ScriptBridgeList_Length::ScriptBridgeList_Length(SQInteger length)
 
{
 
	for (byte j = 0; j < MAX_BRIDGES; j++) {
 
		if (ScriptBridge::IsValidBridge(j)) {
 
			if (length >= (uint)ScriptBridge::GetMinLength(j) && length <= (uint)ScriptBridge::GetMaxLength(j)) this->AddItem(j);
 
			if (length >= ScriptBridge::GetMinLength(j) && length <= ScriptBridge::GetMaxLength(j)) this->AddItem(j);
 
		}
 
	}
 
}
src/script/api/script_bridgelist.hpp
Show inline comments
 
@@ -32,7 +32,7 @@ public:
 
	/**
 
	 * @param length The length of the bridge you want to build.
 
	 */
 
	ScriptBridgeList_Length(uint length);
 
	ScriptBridgeList_Length(SQInteger length);
 
};
 

	
 
#endif /* SCRIPT_BRIDGELIST_HPP */
0 comments (0 inline, 0 general)