mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 11:10:47 +00:00
Fix wall and sector updating over the wire so that it doesn't crash.
git-svn-id: https://svn.eduke32.com/eduke32@1566 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
3c018e64ce
commit
410c1187d1
1 changed files with 10 additions and 4 deletions
|
@ -1034,18 +1034,22 @@ process:
|
||||||
l = packbuf[j++];
|
l = packbuf[j++];
|
||||||
while (l--)
|
while (l--)
|
||||||
{
|
{
|
||||||
Bmemcpy(&i, &packbuf[j], sizeof(int16_t));
|
int16_t secid;
|
||||||
|
|
||||||
|
Bmemcpy(&secid, &packbuf[j], sizeof(int16_t));
|
||||||
j += sizeof(int16_t);
|
j += sizeof(int16_t);
|
||||||
Bmemcpy(§or[i], &packbuf[j], sizeof(sectortype));
|
Bmemcpy(§or[secid], &packbuf[j], sizeof(sectortype));
|
||||||
j += sizeof(sectortype);
|
j += sizeof(sectortype);
|
||||||
}
|
}
|
||||||
|
|
||||||
l = packbuf[j++];
|
l = packbuf[j++];
|
||||||
while (l--)
|
while (l--)
|
||||||
{
|
{
|
||||||
Bmemcpy(&i, &packbuf[j], sizeof(int16_t));
|
int16_t wallid;
|
||||||
|
|
||||||
|
Bmemcpy(&wallid, &packbuf[j], sizeof(int16_t));
|
||||||
j += sizeof(int16_t);
|
j += sizeof(int16_t);
|
||||||
Bmemcpy(&wall[i], &packbuf[j], sizeof(walltype));
|
Bmemcpy(&wall[wallid], &packbuf[j], sizeof(walltype));
|
||||||
j += sizeof(walltype);
|
j += sizeof(walltype);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1919,6 +1923,7 @@ void faketimerhandler(void)
|
||||||
if (k > 4) break;
|
if (k > 4) break;
|
||||||
}
|
}
|
||||||
packbuf[zj] = k;
|
packbuf[zj] = k;
|
||||||
|
k = 0;
|
||||||
|
|
||||||
packbuf[(zj = j++)] = 0;
|
packbuf[(zj = j++)] = 0;
|
||||||
for (i = numsectors-1; i >= 0; i--)
|
for (i = numsectors-1; i >= 0; i--)
|
||||||
|
@ -1941,6 +1946,7 @@ void faketimerhandler(void)
|
||||||
if (k > 6) break;
|
if (k > 6) break;
|
||||||
}
|
}
|
||||||
packbuf[zj] = k;
|
packbuf[zj] = k;
|
||||||
|
k = 0;
|
||||||
|
|
||||||
packbuf[(zj = j++)] = 0;
|
packbuf[(zj = j++)] = 0;
|
||||||
for (i = numwalls-1; i >= 0; i--)
|
for (i = numwalls-1; i >= 0; i--)
|
||||||
|
|
Loading…
Reference in a new issue