no grazing while invurnerable

This commit is contained in:
Andrew "Akari" Alexeyew 2012-08-13 19:09:32 +03:00
parent 85f8799664
commit ec276db013

View file

@ -76,7 +76,7 @@ int collision_projectile(Projectile *p) {
if(dst < projr + 1)
return 1;
if(!p->grazed && dst < grazer) {
if(!p->grazed && dst < grazer && global.frames - abs(global.plr.recovery) > 0) {
p->grazed = True;
global.points += 10;
play_sound("graze");