Skip to content

Commit

Permalink
Fix GCC compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
cxong committed Nov 17, 2013
1 parent 15e379a commit a2b0156
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/player_select_menus.c
Original file line number Diff line number Diff line change
Expand Up @@ -277,17 +277,17 @@ static void DrawNameMenu(GraphicsDevice *g, Vec2i pos, Vec2i size, void *data)

for (i = 0; i < (int)strlen(letters); i++)
{
Vec2i pos = Vec2iNew(
Vec2i menuPos = Vec2iNew(
x + (i % ENTRY_COLS) * ENTRY_SPACING,
y + (i / ENTRY_COLS) * CDogsTextHeight());

if (i == d->nameMenuSelection)
{
DrawTextCharMasked(letters[i], g, pos, colorRed);
DrawTextCharMasked(letters[i], g, menuPos, colorRed);
}
else
{
DrawTextCharMasked(letters[i], g, pos, colorWhite);
DrawTextCharMasked(letters[i], g, menuPos, colorWhite);
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/weapon_menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ static void WeaponSelect(menu_t *menu, int cmd, void *data)
// Add the selected weapon

// Check that the weapn hasn't been chosen yet
int selectedWeapon = gMission.availableWeapons[menu->u.normal.index];
gun_e selectedWeapon = gMission.availableWeapons[menu->u.normal.index];
int i;
for (i = 0; i < p->weaponCount; i++)
{
Expand Down

0 comments on commit a2b0156

Please sign in to comment.