mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-09 01:01:07 +00:00
gl_texmgr.h (struct gltexture_s): change 'pants' and 'shirt' to signed char
otherwise negative value checks wouldn't work if char is unsigned by default. Fixes bug #28 (https://sourceforge.net/p/quakespasm/bugs/28/, also see: https://github.com/Novum/vkQuake/issues/145 ) git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1588 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
32c80b20b0
commit
ed6d5b0d20
1 changed files with 2 additions and 2 deletions
|
@ -59,8 +59,8 @@ typedef struct gltexture_s {
|
|||
unsigned int source_width; //size of image in source data
|
||||
unsigned int source_height; //size of image in source data
|
||||
unsigned short source_crc; //generated by source data before modifications
|
||||
char shirt; //0-13 shirt color, or -1 if never colormapped
|
||||
char pants; //0-13 pants color, or -1 if never colormapped
|
||||
signed char shirt; //0-13 shirt color, or -1 if never colormapped
|
||||
signed char pants; //0-13 pants color, or -1 if never colormapped
|
||||
//used for rendering
|
||||
int visframe; //matches r_framecount if texture was bound this frame
|
||||
} gltexture_t;
|
||||
|
|
Loading…
Reference in a new issue