a little thing i forgot; fix errors and warnings in gcc.
This commit is contained in:
parent
b1e4934421
commit
cddc94aa9b
|
@ -90,9 +90,9 @@ struct GFX3D
|
|||
}
|
||||
BOOL enableTexturing, enableAlphaTest, enableAlphaBlending, enableAntialiasing, enableEdgeMarking;
|
||||
|
||||
enum : u32 {
|
||||
TOON, HIGHLIGHT
|
||||
} shading;
|
||||
static const u32 TOON = 0;
|
||||
static const u32 HIGHLIGHT = 0;
|
||||
u32 shading;
|
||||
|
||||
POLYLIST* polylist;
|
||||
VERTLIST* vertlist;
|
||||
|
|
|
@ -314,13 +314,14 @@ static bool ReadStateChunk(std::istream* is, SFORMAT *sf, int size)
|
|||
return false;
|
||||
|
||||
read32le(&tsize,is);
|
||||
|
||||
if((tmp=CheckS(sf,tsize,toa)))
|
||||
{
|
||||
int count = SS_UNMULT(tsize);
|
||||
int size = tsize & ~SS_FLAGS;
|
||||
bool rlsb = (count!=0);
|
||||
|
||||
if((tmp=CheckS(sf,tsize,toa)))
|
||||
{
|
||||
|
||||
|
||||
if(count == 0) count=1;
|
||||
|
||||
for(int i=0;i<count;i++) {
|
||||
|
@ -337,7 +338,7 @@ static bool ReadStateChunk(std::istream* is, SFORMAT *sf, int size)
|
|||
}
|
||||
}
|
||||
else
|
||||
is->seekg(tsize,std::ios::cur);
|
||||
is->seekg(size*count,std::ios::cur);
|
||||
} // while(...)
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue