fixed side_t::SetSpecialColor.
This never set the needed flags to make the color appear.
This commit is contained in:
parent
38df70f4bc
commit
0478838a9d
3 changed files with 13 additions and 6 deletions
|
|
@ -1399,11 +1399,11 @@ DEFINE_ACTION_FUNCTION_NATIVE(_Sector, SetXOffset, SetXOffset)
|
|||
ACTION_RETURN_POINTER(self->V2());
|
||||
}
|
||||
|
||||
static void SetSideSpecialColor(side_t *self, int tier, int position, int color)
|
||||
static void SetSideSpecialColor(side_t *self, int tier, int position, int color, int useown)
|
||||
{
|
||||
if (tier >= 0 && tier < 3 && position >= 0 && position < 2)
|
||||
{
|
||||
self->SetSpecialColor(tier, position, color);
|
||||
self->SetSpecialColor(tier, position, color, useown);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1413,7 +1413,8 @@ DEFINE_ACTION_FUNCTION_NATIVE(_Sector, SetXOffset, SetXOffset)
|
|||
PARAM_INT(tier);
|
||||
PARAM_INT(position);
|
||||
PARAM_COLOR(color);
|
||||
SetSideSpecialColor(self, tier, position, color);
|
||||
PARAM_BOOL(useown)
|
||||
SetSideSpecialColor(self, tier, position, color, useown);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue