From: limb Date: Sat, 18 Jul 2009 04:10:46 +0000 (+0000) Subject: Shot handling fixes, optimizations. X-Git-Tag: 1.01~12 X-Git-Url: http://git.pulsar-zone.net/?a=commitdiff_plain;h=9f993f2710e68dcdce3bfc20837bda9b717d6c8e;p=curblaster.git Shot handling fixes, optimizations. git-svn-id: svn+ssh://svn/var/repos/curfender@845 bc5cbbab-a4ec-0310-bb52-ff3d296db539 --- diff --git a/age_bullet.cpp b/age_bullet.cpp index 0225ff7..aa05ac5 100644 --- a/age_bullet.cpp +++ b/age_bullet.cpp @@ -7,7 +7,7 @@ game_object age_bullet(game_object object){ object.y = 0; object.speed = 0; object.direction = 0; - object.vtime = 0; + object.vtime = 1; } else { object.vtime++; }; diff --git a/main.cpp b/main.cpp index 6dafe17..6ca0a98 100644 --- a/main.cpp +++ b/main.cpp @@ -1103,7 +1103,7 @@ int main(int argc, char *argv[]){ } else { //shot sound if(sound==1){shotchannel = play_sound_effect(shotsound);}; - //get next inactive bullet, give it player's direction, speed, height, location +speed in direction, active, set vtime=1. + //get next inactive bullet, give it player's direction, speed, height, location +speed in direction, active. for(int bulletloop = 0; bulletloop