mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 00:42:08 +00:00
-fixed ZScript warnings with comparison signedness.
This commit is contained in:
parent
e6ca0f4817
commit
0fd42a50e8
3 changed files with 6 additions and 6 deletions
|
@ -348,7 +348,7 @@ class DukeStatusBar : DukeCommonStatusBar
|
|||
DrawTexture(ThreeByFive[index], (x - 7, y), DI_ITEM_LEFT|DI_ITEM_VCENTER, 1, (-1, -1), (1, 1), STYLE_Translucent, Raze.ShadeToLight(shade - 10), Translation.MakeID(Translation_Remap, 7));
|
||||
let pe = Raze.ShadeToLight(shade);
|
||||
DrawTexture(ThreeByFive[10], (x - 3, y), DI_ITEM_LEFT | DI_ITEM_VCENTER, 1, (-1, -1), (1, 1), STYLE_Translucent, pe);
|
||||
for (int i = 0; i < format.Length(); i++)
|
||||
for (uint i = 0; i < format.Length(); i++)
|
||||
{
|
||||
int cc = format.ByteAt(i);
|
||||
if (cc != " ")
|
||||
|
|
|
@ -591,12 +591,12 @@ class LastLevelCinema : ScreenJob
|
|||
if (printFont == ConFont)
|
||||
{
|
||||
yy *= 2;
|
||||
for (int i = 0; i < nStringTypeOn; i++, yy += 10) Screen.DrawText(ConFont, Font.CR_GREEN, 140, yy, screentext.StringAt(i), DTA_FullscreenScale, FSMode_Fit640x400);
|
||||
for (uint i = 0; i < nStringTypeOn; i++, yy += 10) Screen.DrawText(ConFont, Font.CR_GREEN, 140, yy, screentext.StringAt(i), DTA_FullscreenScale, FSMode_Fit640x400);
|
||||
Screen.DrawText(ConFont, Font.CR_GREEN, 140, yy, screentext.StringAt(nStringTypeOn), DTA_FullscreenScale, FSMode_Fit640x400, DTA_TextLen, nCharTypeOn);
|
||||
}
|
||||
else
|
||||
{
|
||||
for (int i = 0; i < nStringTypeOn; i++, yy += 8) Screen.DrawText(SmallFont2, Font.CR_UNTRANSLATED, 70, yy, screentext.StringAt(i), DTA_FullscreenScale, FSMode_Fit320x200);
|
||||
for (uint i = 0; i < nStringTypeOn; i++, yy += 8) Screen.DrawText(SmallFont2, Font.CR_UNTRANSLATED, 70, yy, screentext.StringAt(i), DTA_FullscreenScale, FSMode_Fit320x200);
|
||||
Screen.DrawText(SmallFont2, Font.CR_UNTRANSLATED, 70, yy, screentext.StringAt(nStringTypeOn), DTA_FullscreenScale, FSMode_Fit320x200, DTA_TextLen, nCharTypeOn);
|
||||
}
|
||||
}
|
||||
|
@ -637,7 +637,7 @@ class LastLevelCinema : ScreenJob
|
|||
{
|
||||
nCharTypeOn = 0;
|
||||
nStringTypeOn++;
|
||||
if (nStringTypeOn >= screentext.Count())
|
||||
if (nStringTypeOn >= uint(screentext.Count()))
|
||||
{
|
||||
nextclock = (GameTicRate * (screentext.Count() + 2)) + ticks;
|
||||
phase = 3;
|
||||
|
|
|
@ -126,7 +126,7 @@ class SWStatusBar : RazeStatusBar
|
|||
|
||||
buffer = String.Format("%03d", number);
|
||||
|
||||
for (int i = 0; i < buffer.length(); i++)
|
||||
for (uint i = 0; i < buffer.length(); i++)
|
||||
{
|
||||
let c = buffer.ByteAt(i);
|
||||
if (c < "0" || c > "9")
|
||||
|
@ -148,7 +148,7 @@ class SWStatusBar : RazeStatusBar
|
|||
|
||||
void DisplaySummaryString(double x, double y, int color, int shade, String buffer)
|
||||
{
|
||||
for (int i = 0; i < buffer.length(); i++)
|
||||
for (uint i = 0; i < buffer.length(); i++)
|
||||
{
|
||||
let ch = buffer.ByteAt(i);
|
||||
|
||||
|
|
Loading…
Reference in a new issue