Debian Codegraph @

debian/patches/gcc16.patch

raw
1 --- a/src/prep.c
2 +++ b/src/prep.c
3 @@ -723,7 +723,7 @@
4 // First check if the player has unwittingly disabled all weapons
5 // if so, enable all weapons
6 bool allDisabled = true;
7 - for (int i = 0, j = 0; i < (int)gData->allowed.size; i++, j++)
8 + for (int i = 0; i < (int)gData->allowed.size; i++)
9 {
10 const bool *allowed = CArrayGet(&gData->allowed, i);
11 if (*allowed)
12 --- a/src/prep_equip.c
13 +++ b/src/prep_equip.c
14 @@ -200,12 +200,11 @@
15
16 if (pData->waitResult == EVENT_WAIT_OK)
17 {
18 - for (int i = 0, idx = 0; i < (int)gPlayerDatas.size; i++, idx++)
19 + for (int i = 0; i < (int)gPlayerDatas.size; i++)
20 {
21 const PlayerData *p = CArrayGet(&gPlayerDatas, i);
22 if (!p->IsLocal)
23 {
24 - idx--;
25 continue;
26 }
27 NPlayerData pd = NMakePlayerData(p);