mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-05-30 16:50:50 +00:00
- cleaning out some trash from compat.h.
The header from hell...
This commit is contained in:
parent
ba8dc788fe
commit
b8258da997
18 changed files with 50 additions and 497 deletions
|
@ -614,7 +614,7 @@ static void read_pal(FileReader &fil, int32_t pal[256])
|
|||
char c[3];
|
||||
fil.Read(c, 3);
|
||||
//#if B_BIG_ENDIAN != 0
|
||||
pal[i] = B_LITTLE32((c[0]<<18) + (c[1]<<10) + (c[2]<<2) + (i<<24));
|
||||
pal[i] = B_LITTLE32(unsigned((c[0]<<18) + (c[1]<<10) + (c[2]<<2) + (i<<24)));
|
||||
//#endif
|
||||
}
|
||||
}
|
||||
|
@ -942,7 +942,7 @@ voxmodel_t *loadkvxfrombuf(const char *kvxbuffer, int32_t length)
|
|||
{
|
||||
const char *c = &paloff[i*3];
|
||||
//#if B_BIG_ENDIAN != 0
|
||||
pal[i] = B_LITTLE32((c[0]<<18) + (c[1]<<10) + (c[2]<<2) + (i<<24));
|
||||
pal[i] = B_LITTLE32(int((c[0]<<18) + (c[1]<<10) + (c[2]<<2) + (i<<24)));
|
||||
//#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue