- Removed GetAspectRatio as the implementation was highly fragile. Even if converted to giving the ratio, I have strong concerns about having this function built in without ZDoom supporting arbitrary aspect ratios as the odds of people checking against the hard coded constants seems high. The existing ACS version of this function returns fixed point ratios (because why not) and I fully expected people to use a switch statement when writing it.

This commit is contained in:
Braden Obrzut 2015-12-07 01:18:56 -05:00
parent 62d41a58a8
commit 72d4c33453

View file

@ -4442,7 +4442,6 @@ enum EACSFunctions
ACSF_GetActorRoll,
ACSF_QuakeEx,
ACSF_Warp, // 92
ACSF_GetAspectRatio,
/* Zandronum's - these must be skipped when we reach 99!
-100:ResetMap(0),
@ -5917,9 +5916,6 @@ doplaysound: if (funcIndex == ACSF_PlayActorSound)
return false;
}
case ACSF_GetAspectRatio:
return CheckRatio(screen->GetWidth(), screen->GetHeight());
default:
break;
}