GRIM: Set the default sprite flags properly

This commit is contained in:
Joel Teichroeb 2014-08-24 14:37:20 -07:00
parent 6278127f39
commit 487702f2b2

View File

@ -52,6 +52,10 @@ void Sprite::loadGrim(const Common::String &name, const char *comma, CMap *cmap)
_width = (float)width / 100.0f;
_height = (float)height / 100.0f;
_pos.set((float)x / 100.0f, (float)y / 100.0f, (float)z / 100.0f);
// Set the default flags for GRIM sprites
_flags1 = Sprite::AlphaTest;
_flags2 = Sprite::DepthTest;
}
void Sprite::loadBinary(Common::SeekableReadStream *stream, EMICostume *costume) {