Fix GCC 4.6 out-of-bounds and uninitialized warnings involving bossmove[].

My choice of solution is simply to add an extra set of values duplicating the previous five because doing so would definitely show the user no changes. I could have tinkered with the messy loop where the out-of-bounds references are made but there is no guarantee I could have succeeded or kept compatibility.

git-svn-id: https://svn.eduke32.com/eduke32@2061 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2011-10-02 07:18:49 +00:00
parent 885b9a46fd
commit 751a0630ef
1 changed files with 11 additions and 10 deletions

View File

@ -10784,20 +10784,21 @@ void G_BonusScreen(int32_t bonusonly)
int32_t breathe[] = int32_t breathe[] =
{ {
0, 30,VICTORY1+1,176,59, 0, 30, VICTORY1+1, 176, 59,
30, 60,VICTORY1+2,176,59, 30, 60, VICTORY1+2, 176, 59,
60, 90,VICTORY1+1,176,59, 60, 90, VICTORY1+1, 176, 59,
90, 120,0 ,176,59 90, 120, 0, 176, 59
}; };
int32_t bossmove[] = int32_t bossmove[] =
{ {
0, 120,VICTORY1+3,86,59, 0, 120, VICTORY1+3, 86, 59,
220, 260,VICTORY1+4,86,59, 220, 260, VICTORY1+4, 86, 59,
260, 290,VICTORY1+5,86,59, 260, 290, VICTORY1+5, 86, 59,
290, 320,VICTORY1+6,86,59, 290, 320, VICTORY1+6, 86, 59,
320, 350,VICTORY1+7,86,59, 320, 350, VICTORY1+7, 86, 59,
350, 380,VICTORY1+8,86,59 350, 380, VICTORY1+8, 86, 59,
350, 380, VICTORY1+8, 86, 59 // duplicate row to alleviate overflow in the for loop below "boss"
}; };
if (g_networkMode == NET_DEDICATED_SERVER) if (g_networkMode == NET_DEDICATED_SERVER)