reduced the number of bird animation frames

This commit is contained in:
Zeno Rogue
2019-09-12 22:50:07 +02:00
parent b9693553bf
commit 99aeb04185
3 changed files with 15 additions and 9 deletions
+3 -2
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;
}