Proper static function use

This commit is contained in:
Kaelan 2024-10-16 16:41:44 -06:00 committed by Ricardo Luís Vaz Silva
parent d9fa7c3894
commit 8b73332366

View file

@ -880,7 +880,7 @@ DEFINE_ACTION_FUNCTION_NATIVE(_Sector, SetXOffset, SetXOffset)
PARAM_SELF_STRUCT_PROLOGUE(sector_t); PARAM_SELF_STRUCT_PROLOGUE(sector_t);
PARAM_INT(pos); PARAM_INT(pos);
PARAM_FLOAT(val) PARAM_FLOAT(val)
self->SetPlaneReflectivity(pos, val); SetPlaneReflectivity(self, pos, val);
return 0; return 0;
} }
@ -894,7 +894,7 @@ DEFINE_ACTION_FUNCTION_NATIVE(_Sector, SetXOffset, SetXOffset)
{ {
PARAM_SELF_STRUCT_PROLOGUE(sector_t); PARAM_SELF_STRUCT_PROLOGUE(sector_t);
PARAM_INT(pos); PARAM_INT(pos);
ACTION_RETURN_FLOAT(self->GetPlaneReflectivity(pos)); ACTION_RETURN_FLOAT(GetPlaneReflectivity(self, pos));
} }
static int PortalBlocksView(sector_t *self, int pos) static int PortalBlocksView(sector_t *self, int pos)