1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-17 22:25:12 +00:00

reduced the number of bird animation frames

This commit is contained in:
Zeno Rogue
2019-06-18 16:15:57 +02:00
parent b9693553bf
commit 99aeb04185
3 changed files with 15 additions and 9 deletions

View File

@@ -1227,8 +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);
int ti = int(t * 30) % 30;
if(ti > 15) ti = 30 - ti;
const int WINGS2 = WINGS * 2;
int ti = int(t * WINGS2) % WINGS2;
if(ti > WINGS) ti = WINGS2 - ti;
return ti;
}