mirror of
https://github.com/simtactics/niotso.git
synced 2025-07-04 13:47:05 -04:00
Added libpq to the Libraries folder. Finally, I have been waiting for this day. libpq is seriously unready out of the box; you have to edit 3 header files to get it to work outside the PostgreSQL build environment.
Also, in iff2html, the directory name no longer appears as part of the IFF's file name on the web page.
This commit is contained in:
parent
4b395ba3ad
commit
10827bf2df
4 changed files with 15 additions and 11 deletions
|
@ -146,8 +146,8 @@ int iff_parse_spr(IFFChunk * ChunkInfo, const uint8_t * Buffer){
|
|||
Count = *(b.Buffer++);
|
||||
SpriteSize -= 2;
|
||||
|
||||
if(Command == 0){
|
||||
/* Do nothing */
|
||||
if(Command == 0 || Command == 16){
|
||||
/* Start marker */
|
||||
}else if(Command == 4){
|
||||
/* Pixel command: valid commands are 1, 2, and 3 */
|
||||
unsigned pixel = 0;
|
||||
|
@ -208,8 +208,6 @@ int iff_parse_spr(IFFChunk * ChunkInfo, const uint8_t * Buffer){
|
|||
if(Count > Sprite->Height - row)
|
||||
{printf("Error %u\n", 9);return 0;}
|
||||
row += Count;
|
||||
}else if(Command == 16){
|
||||
/* Do nothing */
|
||||
}else {printf("Error %u\n", 10);return 0;}
|
||||
}
|
||||
}
|
||||
|
|
0
Libraries/FileHandler/iff/spr2.c
Normal file
0
Libraries/FileHandler/iff/spr2.c
Normal file
Loading…
Add table
Add a link
Reference in a new issue