Prevent possible overflow, just in case

This commit is contained in:
Sally Coolatta 2022-11-22 23:35:20 -05:00
parent e71dcd5d7d
commit d24be71909

View file

@ -506,7 +506,7 @@ mobj_t *Obj_CreateSpecialUFO(void)
{
const boolean huntbackwards = true;
const boolean useshortcuts = false;
const UINT32 traveldist = UINT32_MAX; // Go as far back as possible.
const UINT32 traveldist = INT32_MAX; // Go as far back as possible. Not UINT32_MAX to avoid possible overflow.
boolean pathfindsuccess = false;
path_t pathtofinish = {0};