diff options
author | Vegard Storheil Eriksen <zyp@jvnv.net> | 2010-05-17 17:56:38 +0200 |
---|---|---|
committer | Vegard Storheil Eriksen <zyp@jvnv.net> | 2010-05-17 17:56:38 +0200 |
commit | f78606b6391b282426a73016fff9541320d4994b (patch) | |
tree | 769ecef93c22bd0381bfd704e4995b403cb96664 /bulletpattern.cpp | |
parent | 8bd8089c1e7ca92401e829d28819a35c3061ebd9 (diff) |
Added Application-class.
Diffstat (limited to 'bulletpattern.cpp')
-rw-r--r-- | bulletpattern.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bulletpattern.cpp b/bulletpattern.cpp index a2504f9..7d16e71 100644 --- a/bulletpattern.cpp +++ b/bulletpattern.cpp @@ -22,8 +22,8 @@ BulletPattern::BulletPattern() { } void BulletPattern::update(unsigned int time, unsigned int step) { - if(num_bullets < 503 && num_bullets * 4 < time) { - num_bullets += time / 4 - num_bullets; + while(num_bullets < 503 && num_bullets * 4 < time) { + num_bullets++; } for(int i = 0; i < num_bullets; i++) { bullets[i*4] += bullets[i*4 + 2] * step; |