Skip to content

Commit

Permalink
Proper static function use
Browse files Browse the repository at this point in the history
  • Loading branch information
kevansevans authored and RicardoLuis0 committed Oct 26, 2024
1 parent d9fa7c3 commit 8b73332
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scripting/vmthunks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,7 @@ DEFINE_ACTION_FUNCTION_NATIVE(_Sector, SetXOffset, SetXOffset)
PARAM_SELF_STRUCT_PROLOGUE(sector_t);
PARAM_INT(pos);
PARAM_FLOAT(val)
self->SetPlaneReflectivity(pos, val);
SetPlaneReflectivity(self, pos, val);
return 0;
}

Expand All @@ -894,7 +894,7 @@ DEFINE_ACTION_FUNCTION_NATIVE(_Sector, SetXOffset, SetXOffset)
{
PARAM_SELF_STRUCT_PROLOGUE(sector_t);
PARAM_INT(pos);
ACTION_RETURN_FLOAT(self->GetPlaneReflectivity(pos));
ACTION_RETURN_FLOAT(GetPlaneReflectivity(self, pos));
}

static int PortalBlocksView(sector_t *self, int pos)
Expand Down

0 comments on commit 8b73332

Please sign in to comment.