1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-26 02:14:48 +00:00

halved animatedbird space usage

This commit is contained in:
Zeno Rogue
2019-06-18 16:09:54 +02:00
parent 9a1858e2f9
commit 488c25ecea
3 changed files with 11 additions and 6 deletions

View File

@@ -1227,7 +1227,9 @@ void drawPlayer(eMonster m, cell *where, const transmatrix& V, color_t col, doub
int wingphase(int period, int phase = 0) {
ld t = fractick(period, phase);
return int(t * 30) % 30;
int ti = int(t * 30) % 30;
if(ti > 15) ti = 30 - ti;
return ti;
}
transmatrix wingmatrix(int period, int phase = 0) {