mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2024-11-28 19:23:53 +00:00
fix tile effects 5 & 6 (wavy when passing by)
This only used to work because grid updates via tile effect wavy did not set the update flag, so the grid didn't update itself afterward, resetting the prev. written walues
This commit is contained in:
parent
6686080ddb
commit
ff3ae5a0c4
1 changed files with 5 additions and 2 deletions
|
@ -247,8 +247,11 @@ void Element::setElementEffectByIndex(int eidx)
|
|||
eff->wavyMin = bity;
|
||||
eff->wavyMax = bity*1.2f;
|
||||
|
||||
createGrid(2, e.segsy);
|
||||
setGridFromWavy();
|
||||
if(RenderGrid *g = createGrid(2, e.segsy))
|
||||
{
|
||||
g->gridType = GRID_UNDEFINED; // by default it's GRID_WAVY, but that would reset during update
|
||||
setGridFromWavy();
|
||||
}
|
||||
}
|
||||
break;
|
||||
default:
|
||||
|
|
Loading…
Reference in a new issue