diff options
| author | Japa Illo | 2012-02-26 22:56:26 +0530 |
|---|---|---|
| committer | Japa Illo | 2012-02-26 22:56:26 +0530 |
| commit | bf1094b4d195b24acecf947770346623d3a399b5 (patch) | |
| tree | 2182797323b64794613cf8f0ea8e2e87591fa809 /Block.cpp | |
| parent | 730a216f761f643823f2cac7cfa3a23c28fe76dd (diff) | |
| download | stonesense-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.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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);
}
|
