]> code.bitgloo.com Git - clyne/gamedev.git/commitdiff
Made fire slower
authordrumsetmonkey <abelleisle@roadrunner.com>
Wed, 13 Jan 2016 13:42:26 +0000 (08:42 -0500)
committerdrumsetmonkey <abelleisle@roadrunner.com>
Wed, 13 Jan 2016 13:42:26 +0000 (08:42 -0500)
main.cpp

index 62204e1e67f8a5ac7679d3635c6966c787b0a79f..7386186e9d82fe565bf3410c7b9d7dbc31040f04 100644 (file)
--- a/main.cpp
+++ b/main.cpp
@@ -962,7 +962,7 @@ void logic(){
                                break;
                        case FIRE_PIT:
                                for(int r = 0; r < (rand()%20)+10;r++){
-                                       currentWorld->addParticle(rand()%(int)(b->width/2) + b->loc.x+b->width/4, b->loc.y+3*HLINE, HLINE, HLINE, rand()%2 == 0?-(rand()%7)*.01:(rand()%7)*.01,((4+rand()%6)*.05), {1.0f,0.0f,0.0f}, 100);
+                                       currentWorld->addParticle(rand()%(int)(b->width/2) + b->loc.x+b->width/4, b->loc.y+3*HLINE, HLINE, HLINE, rand()%2 == 0?-(rand()%3)*.01:(rand()%3)*.01,((4+rand()%6)*.005), {1.0f,0.0f,0.0f}, 400);
                                        currentWorld->particles.back()->gravity = false;
                                        currentWorld->particles.back()->behind = true;
                                }