diff --git a/source/common/fonts/v_text.cpp b/source/common/fonts/v_text.cpp index 59d843496..54dfbf290 100644 --- a/source/common/fonts/v_text.cpp +++ b/source/common/fonts/v_text.cpp @@ -242,6 +242,27 @@ DEFINE_ACTION_FUNCTION(FFont, BreakLines) ACTION_RETURN_OBJECT(Create(broken)); } +DEFINE_ACTION_FUNCTION(FFont, BreakLines2) +{ + PARAM_SELF_STRUCT_PROLOGUE(FFont); + PARAM_STRING(text); + PARAM_INT(maxwidth); + + auto broken = V_BreakLines(self, maxwidth, text, true); + ACTION_RETURN_OBJECT(Create(broken)); +} + +DEFINE_ACTION_FUNCTION(_Hugohaft, BreakLines) +{ + PARAM_SELF_STRUCT_PROLOGUE(FFont); + PARAM_STRING(text); + PARAM_INT(maxwidth); + + auto broken = V_BreakLines(self, maxwidth, text, true); + ACTION_RETURN_OBJECT(Create(broken)); +} + + bool generic_ui; EXTERN_CVAR(String, language) diff --git a/source/common/scripting/vm/vmframe.cpp b/source/common/scripting/vm/vmframe.cpp index bc6b344e5..4b50f9b21 100644 --- a/source/common/scripting/vm/vmframe.cpp +++ b/source/common/scripting/vm/vmframe.cpp @@ -79,8 +79,8 @@ void VMFunction::CreateRegUse() int count = 0; if (!Proto) { - if (RegTypes) return; - Printf(TEXTCOLOR_ORANGE "Function without prototype needs register info manually set: %s\n", PrintableName.GetChars()); + //if (RegTypes) return; + //Printf(TEXTCOLOR_ORANGE "Function without prototype needs register info manually set: %s\n", PrintableName.GetChars()); return; } assert(Proto->isPrototype());