mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-18 02:21:47 +00:00
Fixed ffloor_t Lua variables not actually saving to $$$.sav
Stupid overlooked semicolons
This commit is contained in:
parent
36b7156ff7
commit
98e43ac0d9
2 changed files with 3 additions and 5 deletions
|
@ -715,10 +715,10 @@ static UINT8 ArchiveValue(int TABLESINDEX, int myindex)
|
|||
if (!rover)
|
||||
WRITEUINT8(save_p, ARCH_NULL);
|
||||
else {
|
||||
ffloor_t *r2 = NULL;
|
||||
ffloor_t *r2;
|
||||
UINT16 i = 0;
|
||||
// search for id
|
||||
for (r2 = rover->target->ffloors; r2; r2 = r2->next);
|
||||
for (r2 = rover->target->ffloors; r2; r2 = r2->next)
|
||||
{
|
||||
if (r2 == rover)
|
||||
break;
|
||||
|
|
|
@ -4753,7 +4753,7 @@ static inline ffloor_t *P_GetFFloorBySec(sector_t *sec, sector_t *sec2)
|
|||
/** Gets a 3Dfloor by ID number.
|
||||
*
|
||||
* \param sec Target sector.
|
||||
* \param id ID of 3Dfloor in target sector. Can be a number from 0 to sec->numattached-1.
|
||||
* \param id ID of 3Dfloor in target sector. Note that the first FOF's ID is 0.
|
||||
* \return Pointer to found 3Dfloor, or NULL.
|
||||
* \sa P_GetFFloorBySec
|
||||
*/
|
||||
|
@ -4764,8 +4764,6 @@ ffloor_t *P_GetFFloorByID(sector_t *sec, UINT16 id)
|
|||
|
||||
if (!sec->ffloors)
|
||||
return NULL;
|
||||
if (id >= sec->numattached)
|
||||
return NULL; // ID out of range
|
||||
for (rover = sec->ffloors; rover; rover = rover->next)
|
||||
if (i++ == id)
|
||||
return rover;
|
||||
|
|
Loading…
Reference in a new issue