mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-02-18 02:01:18 +00:00
Proper static function use
This commit is contained in:
parent
d9fa7c3894
commit
8b73332366
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue