FrenkelS / doomtd3

Stripped down version of Doom (Doom8088) for only running timedemo 3
GNU General Public License v2.0
10 stars 2 forks source link

Infinite loop in R_DrawMaskedColumn() when compiled with Watcom using 8086 instructions #13

Closed FrenkelS closed 3 months ago

FrenkelS commented 3 months ago

Using 286 instructions is fine, but 8086 instructions results in an infinite loop in R_DrawMaskedColumn() when compiled with Watcom half way through the demo.

FrenkelS commented 3 months ago

somehow in 16-bit Watcom fixed_t xr = CENTERX * FRACUNIT - FRACUNIT + FixedMul(tx + (((int32_t)patch->width) << FRACBITS), xscale); is different from fixed_t xr = CENTERX * FRACUNIT + FixedMul(tx + (((int32_t)patch->width) << FRACBITS), xscale) - FRACUNIT;