- moved all exports from class Font to vmthunks.cpp and gave them direct native entrypoints.
- changed PARAM_STRING to use the passed string by reference instead of by value. The 3 instances where passing by value was needed now use PARAM_STRING_VAL.
This commit is contained in:
parent
03015896d6
commit
a7e472b4b3
7 changed files with 142 additions and 53 deletions
|
|
@ -1892,7 +1892,7 @@ EXTERN_CVAR(Float, con_midtime)
|
|||
DEFINE_ACTION_FUNCTION(AActor, A_Print)
|
||||
{
|
||||
PARAM_SELF_PROLOGUE(AActor);
|
||||
PARAM_STRING (text);
|
||||
PARAM_STRING_VAL(text);
|
||||
PARAM_FLOAT (time);
|
||||
PARAM_NAME (fontname);
|
||||
|
||||
|
|
@ -1927,7 +1927,7 @@ DEFINE_ACTION_FUNCTION(AActor, A_Print)
|
|||
DEFINE_ACTION_FUNCTION(AActor, A_PrintBold)
|
||||
{
|
||||
PARAM_SELF_PROLOGUE(AActor);
|
||||
PARAM_STRING (text);
|
||||
PARAM_STRING_VAL (text);
|
||||
PARAM_FLOAT (time);
|
||||
PARAM_NAME (fontname);
|
||||
|
||||
|
|
@ -1958,7 +1958,7 @@ DEFINE_ACTION_FUNCTION(AActor, A_PrintBold)
|
|||
DEFINE_ACTION_FUNCTION(AActor, A_Log)
|
||||
{
|
||||
PARAM_SELF_PROLOGUE(AActor);
|
||||
PARAM_STRING(text);
|
||||
PARAM_STRING_VAL(text);
|
||||
PARAM_BOOL(local);
|
||||
|
||||
if (local && !self->CheckLocalView(consoleplayer)) return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue