mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-24 13:11:33 +00:00
- fixed compilation warnings reported by GCC and Clang
src/common/menu/menudef.cpp:785:19: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare] src/playsim/p_pspr.cpp:178:3: warning: field 'processPending' will be initialized after field 'HAlign' [-Wreorder]
This commit is contained in:
parent
841a9b3017
commit
112640e6c0
2 changed files with 7 additions and 7 deletions
|
@ -769,8 +769,8 @@ static int GetInsertIndex(FScanner& sc, DMenuDescriptor* desc)
|
|||
// Find an existing menu item to use as insertion point
|
||||
sc.MustGetString();
|
||||
|
||||
auto n = desc->mItems.Size();
|
||||
for (unsigned int i = 0; i < n; i++)
|
||||
int n = desc->mItems.Size();
|
||||
for (int i = 0; i < n; i++)
|
||||
{
|
||||
auto item = desc->mItems[i];
|
||||
|
||||
|
|
|
@ -163,8 +163,11 @@ DEFINE_FIELD_BIT(DPSprite, Flags, bInterpolate, PSPF_INTERPOLATE)
|
|||
//------------------------------------------------------------------------
|
||||
|
||||
DPSprite::DPSprite(player_t *owner, AActor *caller, int id)
|
||||
: x(.0), y(.0),
|
||||
: HAlign(0),
|
||||
VAlign(0),
|
||||
x(.0), y(.0),
|
||||
oldx(.0), oldy(.0),
|
||||
InterpolateTic(false),
|
||||
firstTic(true),
|
||||
Tics(0),
|
||||
Translation(0),
|
||||
|
@ -175,10 +178,7 @@ DPSprite::DPSprite(player_t *owner, AActor *caller, int id)
|
|||
Sprite(0),
|
||||
Frame(0),
|
||||
ID(id),
|
||||
processPending(true),
|
||||
HAlign(0),
|
||||
VAlign(0),
|
||||
InterpolateTic(false)
|
||||
processPending(true)
|
||||
{
|
||||
rotation = 0.;
|
||||
scale = {1.0, 1.0};
|
||||
|
|
Loading…
Reference in a new issue