summaryrefslogtreecommitdiff
path: root/SpriteObjects.cpp
diff options
context:
space:
mode:
authorJapa2010-09-08 17:47:38 +0000
committerJapa2010-09-08 17:47:38 +0000
commit23600640529542241bea58737ee8a0fb6eb430d1 (patch)
tree4785f442e6299d5d770257dbe7a161a64959fcca /SpriteObjects.cpp
parent6079281a49efb84bbae98f4b9fb8649e7a4ee754 (diff)
downloadstonesense-23600640529542241bea58737ee8a0fb6eb430d1.tar.gz
stonesense-23600640529542241bea58737ee8a0fb6eb430d1.tar.bz2
stonesense-23600640529542241bea58737ee8a0fb6eb430d1.tar.xz
moved fluid drawing into XML files
Diffstat (limited to 'SpriteObjects.cpp')
-rw-r--r--SpriteObjects.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/SpriteObjects.cpp b/SpriteObjects.cpp
index 5cfbcbe..de9413e 100644
--- a/SpriteObjects.cpp
+++ b/SpriteObjects.cpp
@@ -435,6 +435,7 @@ void c_sprite::draw_world(int x, int y, int z, bool chop)
void c_sprite::draw_world_offset(int x, int y, int z, int tileoffset, bool chop)
{
+ if(defaultsheet == 0) defaultsheet = IMGObjectSheet;
//sprites can be offset by a random amount, both animationwise, and just variationwise.
//the base offset is set here.
int rando = randomCube[x%RANDOM_CUBE][y%RANDOM_CUBE][z%RANDOM_CUBE];