Skip to content

Commit

Permalink
Autodetect animated flats with "LIQ" in name as liquid
Browse files Browse the repository at this point in the history
  • Loading branch information
bradharding committed Jul 19, 2023
1 parent 3508cd7 commit 4a0fdd5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/p_spec.c
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,11 @@ void P_InitPicAnims(void)
SetTerrainType(lastanim, SLIME);
isliquid = true;
}
else if (M_StrCaseStr(animdefs[i].startname, "LIQ"))
{
SetTerrainType(lastanim, LIQUID);
isliquid = true;
}
}

// Check if flat is liquid in popular texture packs
Expand Down

0 comments on commit 4a0fdd5

Please sign in to comment.