mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 23:07:42 +00:00
CGameOptions: Make use of std::string_view where applicable
Enforces the use of valid strings in the interface. Also reduces c_str() noise a little bit.
This commit is contained in:
@@ -396,12 +396,13 @@ void CScriptSpecialFunction::AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId
|
||||
}
|
||||
case ESpecialFunction::RedundantHintSystem: {
|
||||
CHintOptions& hintOptions = g_GameState->HintOptions();
|
||||
if (msg == EScriptObjectMessage::Action)
|
||||
hintOptions.ActivateContinueDelayHintTimer(xec_locatorName.c_str());
|
||||
else if (msg == EScriptObjectMessage::Increment)
|
||||
hintOptions.ActivateImmediateHintTimer(xec_locatorName.c_str());
|
||||
else if (msg == EScriptObjectMessage::Decrement)
|
||||
hintOptions.DelayHint(xec_locatorName.c_str());
|
||||
if (msg == EScriptObjectMessage::Action) {
|
||||
hintOptions.ActivateContinueDelayHintTimer(xec_locatorName);
|
||||
} else if (msg == EScriptObjectMessage::Increment) {
|
||||
hintOptions.ActivateImmediateHintTimer(xec_locatorName);
|
||||
} else if (msg == EScriptObjectMessage::Decrement) {
|
||||
hintOptions.DelayHint(xec_locatorName);
|
||||
}
|
||||
break;
|
||||
}
|
||||
case ESpecialFunction::Billboard: {
|
||||
|
||||
Reference in New Issue
Block a user