mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-28 23:33:37 +00:00
Use standard wide string returns for tutorial messages
This commit is contained in:
parent
377e1d2192
commit
8302870fec
|
|
@ -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();
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue