mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-22 03:12:00 -04:00
fix save buffer size calculation
This commit is contained in:
parent
c4998a2e02
commit
277fa46a61
@ -2091,7 +2091,9 @@ void P_ArchiveWorld (void)
|
||||
// killough 3/22/98: fix bug caused by hoisting save_p too early
|
||||
// killough 10/98: adjust size for changes below
|
||||
size_t size =
|
||||
(sizeof(short)*5 + sizeof sec->floorheight + sizeof sec->ceilingheight)
|
||||
(sizeof(short)*5 + sizeof sec->floorheight + sizeof sec->ceilingheight
|
||||
+ sizeof(sec->floor_xoffs) + sizeof(sec->floor_yoffs)
|
||||
+ sizeof(sec->ceiling_xoffs) + sizeof(sec->ceiling_yoffs))
|
||||
* numsectors + sizeof(short)*3*numlines + 4;
|
||||
|
||||
for (i=0; i<numlines; i++)
|
||||
|
Loading…
x
Reference in New Issue
Block a user