summaryrefslogtreecommitdiff
path: root/Block.cpp
diff options
context:
space:
mode:
authorJapa Illo2012-02-26 22:56:26 +0530
committerJapa Illo2012-02-26 22:56:26 +0530
commitbf1094b4d195b24acecf947770346623d3a399b5 (patch)
tree2182797323b64794613cf8f0ea8e2e87591fa809 /Block.cpp
parent730a216f761f643823f2cac7cfa3a23c28fe76dd (diff)
downloadstonesense-bf1094b4d195b24acecf947770346623d3a399b5.tar.gz
stonesense-bf1094b4d195b24acecf947770346623d3a399b5.tar.bz2
stonesense-bf1094b4d195b24acecf947770346623d3a399b5.tar.xz
fixed the stupidly large fire bitmap, also made particle effects scale properly.
Signed-off-by: Japa Illo <japa.mala.illo@gmail.com>
Diffstat (limited to 'Block.cpp')
-rw-r--r--Block.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Block.cpp b/Block.cpp
index 13e4104..ef5056e 100644
--- a/Block.cpp
+++ b/Block.cpp
@@ -463,7 +463,7 @@ void Block::Draw()
tint.a*=Eff_Dragonfire.density/100.0f;
tint.g*=Eff_Dragonfire.density/100.0f;
tint.b*=Eff_Dragonfire.density/100.0f;
- DrawSpriteFromSheet((((currentFrameLong+rando)%128)*20), sprite_dragonfire, tint, drawx, drawy, this, 1.0f);
+ DrawSpriteFromSheet((((currentFrameLong+rando)%8)*20), sprite_dragonfire, tint, drawx, drawy, this, 1.0f);
//ALLEGRO_COLOR tint = lookupMaterialColor(Eff_Dragonfire.matt.type, Eff_Dragonfire.matt.index);
//draw_particle_cloud(Eff_Dragonfire.density, drawx, drawy - (SPRITEHEIGHT/2), SPRITEWIDTH, SPRITEHEIGHT, sprite_dragonfire, tint);
}
@@ -473,7 +473,7 @@ void Block::Draw()
tint.a*=Eff_Fire.density/100.0f;
tint.g*=Eff_Fire.density/100.0f;
tint.b*=Eff_Fire.density/100.0f;
- DrawSpriteFromSheet((((currentFrameLong+rando)%128)*20), sprite_dragonfire, tint, drawx, drawy, this, 1.0f);
+ DrawSpriteFromSheet((((currentFrameLong+rando)%8)*20), sprite_dragonfire, tint, drawx, drawy, this, 1.0f);
//ALLEGRO_COLOR tint = lookupMaterialColor(Eff_Fire.matt.type, Eff_Fire.matt.index);
//draw_particle_cloud(Eff_Fire.density, drawx, drawy - (SPRITEHEIGHT/2), SPRITEWIDTH, SPRITEHEIGHT, sprite_fire, tint);
}