mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-12 19:20:38 +00:00
- fixed warnings in Blood.
This commit is contained in:
parent
39319a9582
commit
8606b2ea5a
3 changed files with 4 additions and 4 deletions
|
@ -465,7 +465,7 @@ uint8_t RFS::GetNextTag()
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (eax == 0 && strlen(tags[i]._value) == ebp)
|
if (eax == 0 && (int)strlen(tags[i]._value) == ebp)
|
||||||
{
|
{
|
||||||
scriptBuffer[ebp] = 0;
|
scriptBuffer[ebp] = 0;
|
||||||
return tags[i]._index;
|
return tags[i]._index;
|
||||||
|
|
|
@ -394,7 +394,7 @@ static AISTATE* allAIStates[] =
|
||||||
|
|
||||||
FSerializer& Serialize(FSerializer& arc, const char* keyname, AISTATE*& w, AISTATE** def)
|
FSerializer& Serialize(FSerializer& arc, const char* keyname, AISTATE*& w, AISTATE** def)
|
||||||
{
|
{
|
||||||
int i = 0;
|
unsigned i = 0;
|
||||||
if (arc.isWriting())
|
if (arc.isWriting())
|
||||||
{
|
{
|
||||||
if (def && w == *def) return arc;
|
if (def && w == *def) return arc;
|
||||||
|
@ -411,7 +411,7 @@ FSerializer& Serialize(FSerializer& arc, const char* keyname, AISTATE*& w, AISTA
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
arc(keyname, i);
|
arc(keyname, i);
|
||||||
if (i >= 0 && i < countof(allAIStates))
|
if (i < countof(allAIStates))
|
||||||
{
|
{
|
||||||
w = allAIStates[i];
|
w = allAIStates[i];
|
||||||
}
|
}
|
||||||
|
|
|
@ -3287,7 +3287,7 @@ void condError(XSPRITE* pXCond, const char* pzFormat, ...) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
snprintf(buffer, 512, "\n\n%s CONDITION RX: %d, TX: %d, SPRITE: #%d RETURNS:\n", condType.GetChars(), pXCond->rxID, pXCond->txID, pXCond->reference);
|
snprintf(buffer, 256, "\n\n%s CONDITION RX: %d, TX: %d, SPRITE: #%d RETURNS:\n", condType.GetChars(), pXCond->rxID, pXCond->txID, pXCond->reference);
|
||||||
va_list args;
|
va_list args;
|
||||||
va_start(args, pzFormat);
|
va_start(args, pzFormat);
|
||||||
vsnprintf(buffer2, 512, pzFormat, args);
|
vsnprintf(buffer2, 512, pzFormat, args);
|
||||||
|
|
Loading…
Reference in a new issue