mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 06:41:59 +00:00
- fixed warnings in Exhumed.
This commit is contained in:
parent
948f194064
commit
10b0bba53e
5 changed files with 5 additions and 5 deletions
|
@ -418,7 +418,7 @@ static const char * const cinpalfname[] = {
|
|||
|
||||
void uploadCinemaPalettes()
|
||||
{
|
||||
for (int i = 0; i < countof(cinpalfname); i++)
|
||||
for (unsigned i = 0; i < countof(cinpalfname); i++)
|
||||
{
|
||||
uint8_t palette[768] = {};
|
||||
auto hFile = fileSystem.OpenFileReader(cinpalfname[i]);
|
||||
|
|
|
@ -193,7 +193,7 @@ public:
|
|||
LMFPlayer* pId = (LMFPlayer*)userdata;
|
||||
memcpy(buff, &pId->audio.samples[pId->audio.nRead], len);
|
||||
pId->audio.nRead += len / 2;
|
||||
if (pId->audio.nRead >= countof(pId->audio.samples)) pId->audio.nRead = 0;
|
||||
if (pId->audio.nRead >= (int)countof(pId->audio.samples)) pId->audio.nRead = 0;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -144,7 +144,7 @@ void CheckMummyRevive(short nMummy)
|
|||
|
||||
for (unsigned i = 0; i < MummyList.Size(); i++)
|
||||
{
|
||||
if (i != nMummy)
|
||||
if ((int)i != nMummy)
|
||||
{
|
||||
short nSprite2 = MummyList[i].nSprite;
|
||||
if (sprite[nSprite2].statnum != 102) {
|
||||
|
|
|
@ -183,7 +183,7 @@ void CopyHeadToWorkTile(short nTile)
|
|||
const uint8_t* pSrc = tilePtr(nTile);
|
||||
uint8_t *pDest = &Worktile[212 * 49 + 53];
|
||||
|
||||
for (int i = 0; i < kSpiritY; i++)
|
||||
for (unsigned i = 0; i < kSpiritY; i++)
|
||||
{
|
||||
memcpy(pDest, pSrc, kSpiritX);
|
||||
|
||||
|
|
|
@ -167,7 +167,7 @@ int seq_ReadSequence(const char *seqName)
|
|||
return 0;
|
||||
}
|
||||
|
||||
short tag;
|
||||
unsigned short tag;
|
||||
hFile.Read(&tag, sizeof(tag));
|
||||
if (tag < MAKE_ID('I', 'H', 0, 0) || (tag > MAKE_ID('I', 'H', 0, 0) && tag != MAKE_ID('D', 'S', 0, 0)))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue