mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(svn r16771) -Fix: API export was forgotten causing API to think variables were uint; doesn't matter much as int was converted to uint and then back.
This commit is contained in:
parent
2ba7e31971
commit
16e207f78b
@ -37,7 +37,7 @@ namespace SQConvert {
|
|||||||
void SQAITileList_IndustryAccepting_Register(Squirrel *engine) {
|
void SQAITileList_IndustryAccepting_Register(Squirrel *engine) {
|
||||||
DefSQClass <AITileList_IndustryAccepting> SQAITileList_IndustryAccepting("AITileList_IndustryAccepting");
|
DefSQClass <AITileList_IndustryAccepting> SQAITileList_IndustryAccepting("AITileList_IndustryAccepting");
|
||||||
SQAITileList_IndustryAccepting.PreRegister(engine, "AITileList");
|
SQAITileList_IndustryAccepting.PreRegister(engine, "AITileList");
|
||||||
SQAITileList_IndustryAccepting.AddConstructor<void (AITileList_IndustryAccepting::*)(IndustryID industry_id, uint radius), 3>(engine, "xii");
|
SQAITileList_IndustryAccepting.AddConstructor<void (AITileList_IndustryAccepting::*)(IndustryID industry_id, int radius), 3>(engine, "xii");
|
||||||
|
|
||||||
SQAITileList_IndustryAccepting.PostRegister(engine);
|
SQAITileList_IndustryAccepting.PostRegister(engine);
|
||||||
}
|
}
|
||||||
@ -54,7 +54,7 @@ namespace SQConvert {
|
|||||||
void SQAITileList_IndustryProducing_Register(Squirrel *engine) {
|
void SQAITileList_IndustryProducing_Register(Squirrel *engine) {
|
||||||
DefSQClass <AITileList_IndustryProducing> SQAITileList_IndustryProducing("AITileList_IndustryProducing");
|
DefSQClass <AITileList_IndustryProducing> SQAITileList_IndustryProducing("AITileList_IndustryProducing");
|
||||||
SQAITileList_IndustryProducing.PreRegister(engine, "AITileList");
|
SQAITileList_IndustryProducing.PreRegister(engine, "AITileList");
|
||||||
SQAITileList_IndustryProducing.AddConstructor<void (AITileList_IndustryProducing::*)(IndustryID industry_id, uint radius), 3>(engine, "xii");
|
SQAITileList_IndustryProducing.AddConstructor<void (AITileList_IndustryProducing::*)(IndustryID industry_id, int radius), 3>(engine, "xii");
|
||||||
|
|
||||||
SQAITileList_IndustryProducing.PostRegister(engine);
|
SQAITileList_IndustryProducing.PostRegister(engine);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user