mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-17 23:15:11 -05:00
Change int to u8
Jenkins plz
This commit is contained in:
parent
6fc3c8cf77
commit
ccce87cb89
@ -3977,12 +3977,12 @@ void CreateScrubMessages() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
CustomMessageMinimal NaviMessages[];
|
CustomMessageMinimal NaviMessages[];
|
||||||
extern const int NaviMsgCount = 15;
|
extern const u8 NaviMsgCount = 15;
|
||||||
|
|
||||||
void CreateNaviRandoMessages() {
|
void CreateNaviRandoMessages() {
|
||||||
CustomMessageManager* customMessageManager = CustomMessageManager::Instance;
|
CustomMessageManager* customMessageManager = CustomMessageManager::Instance;
|
||||||
customMessageManager->AddCustomMessageTable(Randomizer::NaviRandoMessageTableID);
|
customMessageManager->AddCustomMessageTable(Randomizer::NaviRandoMessageTableID);
|
||||||
for (int i = 0; i <= (NaviMsgCount - 1); i++) {
|
for (u8 i = 0; i <= (NaviMsgCount - 1); i++) {
|
||||||
customMessageManager->CreateMessage(Randomizer::NaviRandoMessageTableID, i,
|
customMessageManager->CreateMessage(Randomizer::NaviRandoMessageTableID, i,
|
||||||
{ TEXTBOX_TYPE_BLACK, TEXTBOX_POS_BOTTOM, NaviMessages[i].english,
|
{ TEXTBOX_TYPE_BLACK, TEXTBOX_POS_BOTTOM, NaviMessages[i].english,
|
||||||
NaviMessages[i].german, NaviMessages[i].french });
|
NaviMessages[i].german, NaviMessages[i].french });
|
||||||
|
@ -1447,7 +1447,7 @@ extern "C" CustomMessageEntry Randomizer_GetScrubMessage(u16 scrubTextId) {
|
|||||||
return CustomMessageManager::Instance->RetrieveMessage(Randomizer::scrubMessageTableID, price);
|
return CustomMessageManager::Instance->RetrieveMessage(Randomizer::scrubMessageTableID, price);
|
||||||
}
|
}
|
||||||
|
|
||||||
extern const int NaviMsgCount;
|
extern const u8 NaviMsgCount;
|
||||||
|
|
||||||
extern "C" CustomMessageEntry Randomizer_GetNaviMessage() {
|
extern "C" CustomMessageEntry Randomizer_GetNaviMessage() {
|
||||||
u16 naviTextId = rand() % NaviMsgCount;
|
u16 naviTextId = rand() % NaviMsgCount;
|
||||||
|
Loading…
Reference in New Issue
Block a user