Fix HIGH_PRECISION_SPRITE, broken when switching to std::min and std::max.

git-svn-id: https://svn.eduke32.com/eduke32@7111 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2018-10-25 23:31:40 +00:00
parent 50ea556fc6
commit a6e7f601d3

View file

@ -1856,7 +1856,7 @@ static WSHELPER_DECL void calc_vplcinc_sprite(uint32_t *vplc, int32_t *vinc, int
*vinc = tmpvinc;
// Clamp the vertical texture coordinate!
*vplc = min(max<uint32_t>(0, tmpvplc), UINT32_MAX);
*vplc = min<inthi_t>(max<inthi_t>(0, tmpvplc), UINT32_MAX);
}
#endif