mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-07-01 07:32:15 +00:00
Use standard wide string returns for tutorial messages
This commit is contained in:
@@ -11,7 +11,7 @@ bool TutorialMessage::canDisplay()
|
||||
return !limitRepeats || (timesShown < numRepeats);
|
||||
}
|
||||
|
||||
LPCWSTR TutorialMessage::getMessageForDisplay()
|
||||
const wchar_t *TutorialMessage::getMessageForDisplay()
|
||||
{
|
||||
if(!canDisplay())
|
||||
return L"";
|
||||
@@ -20,4 +20,4 @@ LPCWSTR TutorialMessage::getMessageForDisplay()
|
||||
++timesShown;
|
||||
|
||||
return app.GetString( messageId );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,5 +16,5 @@ public:
|
||||
TutorialMessage(int messageId, bool limitRepeats = false, unsigned char numRepeats = TUTORIAL_MESSAGE_DEFAULT_SHOW);
|
||||
|
||||
bool canDisplay();
|
||||
LPCWSTR getMessageForDisplay();
|
||||
};
|
||||
const wchar_t *getMessageForDisplay();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user