1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2024-11-29 03:33:48 +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:
fgenesis 2023-07-11 03:52:22 +02:00
parent 6686080ddb
commit ff3ae5a0c4

View file

@ -247,8 +247,11 @@ void Element::setElementEffectByIndex(int eidx)
eff->wavyMin = bity; eff->wavyMin = bity;
eff->wavyMax = bity*1.2f; eff->wavyMax = bity*1.2f;
createGrid(2, e.segsy); if(RenderGrid *g = createGrid(2, e.segsy))
setGridFromWavy(); {
g->gridType = GRID_UNDEFINED; // by default it's GRID_WAVY, but that would reset during update
setGridFromWavy();
}
} }
break; break;
default: default: