From 65a9e41eb81d0531cc702846e0cd9221e1d91179 Mon Sep 17 00:00:00 2001 From: "chirs241097@gmail.com" Date: Tue, 25 Feb 2014 23:51:17 +0000 Subject: M trunk/CHANGELOG.TXT M trunk/global.h M trunk/levels.h M trunk/main.cpp M trunk/towernbullet.h --- main.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'main.cpp') diff --git a/main.cpp b/main.cpp index 8797df8..8ef33f6 100644 --- a/main.cpp +++ b/main.cpp @@ -77,7 +77,7 @@ void Player_Clear_Expand() for (int i=1;i<=bulcnt;++i) { double dis=GetDist(bullet[i].bulletpos,playerpos); - if (dis<=clrrange&&bullet[i].exist) + if (dis<=clrrange&&bullet[i].exist&&!bullet[i].inv) { CreateBullet255(bullet[i].bulletpos.x,bullet[i].bulletpos.y,10); bullet[i].exist=false; @@ -100,7 +100,7 @@ void Player_Clear_Rotate() double rad=atan2l(bullet[i].bulletpos.y-playerpos.y,bullet[i].bulletpos.x-playerpos.x); hge->Gfx_RenderLine(playerpos.x+8,playerpos.y+8,playerpos.x+cos(clrrad)*clrmaxrange,playerpos.y+sin(clrrad)*clrmaxrange); while (rad<0)rad+=2*pi; - if (dis<=clrmaxrange&&bullet[i].exist&&rad>normalizerad(clrrad)-pi/12&&radnormalizerad(clrrad)-pi/12&&rad