Skip to content

Commit

Permalink
Change: Allow encoding 32bpp-only sprites.
Browse files Browse the repository at this point in the history
This makes (re)encoding GRFs without 8bpp sprites possible.

Will allow a non-TTDPatch-compatible NewGRF, but that's easily done already...
  • Loading branch information
PeterN committed Sep 15, 2024
1 parent 44a6513 commit 3fecf4c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/readinfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,6 @@ void Real::AddSprite(size_t sprite,int infover,const string&data){
inf.forcereopen=(inf.ypos<prevy);
prevy=inf.ypos;

if(infs.size()==0&&inf.zoom!=0)throw Sprite::unparseable("first sprite is not 8bpp normal zoom sprite",sprite);
if(inf.depth==DEPTH_MASK){
SpriteInfo parent=infs[infs.size()-1];
if (parent.depth!=DEPTH_32BPP)throw Sprite::unparseable("mask sprite not preceded by 32bpp sprite",sprite);
Expand Down

0 comments on commit 3fecf4c

Please sign in to comment.