forked from Ports/perfect_dark
Merge pull request #49 from tmyqlfpir/skedar-door-rate-limit
Rate limit stuckage RNG for skedar doors
This commit is contained in:
1 file changed
+5
@@ -20056,7 +20056,12 @@ bool doorCalcIntendedFrac(struct doorobj *door)
|
||||
if (door->base.flags3 & OBJFLAG3_DOOR_STICKY) {
|
||||
s32 value = (random() % 64) + 30;
|
||||
|
||||
#ifndef PLATFORM_N64 // emulate low fps cal rate for stackage test
|
||||
if (((g_Vars.lvframenum % value) == 0)
|
||||
&& ((g_Vars.lvframe60 & 3) == 0)) {
|
||||
#else
|
||||
if ((g_Vars.lvframenum % value) == 0) {
|
||||
#endif
|
||||
bool dothething = false;
|
||||
struct doorobj *loopdoor;
|
||||
|
||||
|
||||
Reference in new issue
Block a user