Don't use bounds check for checktrigger() in twoframedelayfix()

This is like the previous patch, but for twoframedelayfix(), because I
forgot to read the comment that talked about twoframedelayfix().
This commit is contained in:
Misa
2020-09-25 15:05:50 -07:00
committed by Ethan Lee
parent c8f000af02
commit fe56764fbc

View File

@@ -2101,7 +2101,7 @@ void mapclass::twoframedelayfix()
|| !custommode
|| game.deathseq != -1
// obj.checktrigger() sets obj.activetrigger and block_idx
|| !INBOUNDS_VEC(obj.checktrigger(&block_idx), obj.entities)
|| obj.checktrigger(&block_idx) <= -1
|| !INBOUNDS_VEC(block_idx, obj.blocks)
|| obj.activetrigger < 300)
{