Override mapping of D1 secret door texture

Previously, this texture was handled by the default branch, which would
add 64.  For this texture, adding 64 picks a frame late in an animation,
causing the texture to have transparent areas.  The intended texture, as
used in D1, has no transparent areas.  Add a special case to pick the
first frame, which appears solid.

Reported-by: Q3BFG10K <https://github.com/dxx-rebirth/dxx-rebirth/issues/577>
Analyzed-by: AlumiuN <https://github.com/dxx-rebirth/dxx-rebirth/issues/577#issuecomment-783002296>
This commit is contained in:
Kp 2021-04-04 22:01:25 +00:00
parent 414c59c6ba
commit 32ef2969e6

View file

@ -292,6 +292,7 @@ uint16_t convert_d1_tmap_num(const uint16_t d1_tmap_num)
case 368: return 395;
case 369: return 396;
case 370: return d1_pig_present ? 195 : 392; // mntr04d (devil: -1)
case 570: return 635;
// range 371..584 handled by default case (wall01 and door frames)
default:
// ranges: