Dettaglio
2023.09.03.Log2075.txt
Nessuna revisione SVN parsata. Mostro il contenuto raw sotto.
Contenuto Raw
commit 86e5fe7fb9c48d3d2edcc129926708ac8f504bab
Author: Dino Bollinger <dino.bollinger@gmail.com>
Date: Sun Sep 3 21:13:08 2023 +0200
Engine: Fix many cases in which cansee() would fail with TROR
This commit adds a failsafe which corrects the given origin and
destination sectnums of the "cansee()" function, by checking if
the corresponding (x,y,z) coordinates are actually contained
within the given sectors.
The problem with TROR in particular was that the calculation done
to determine the point of intersection on the TROR layer requires
the coordinates to be within the given sectnums. Else, cansee()
would simply return 0, even if there was a clear line of sight.
This should also implicitly fix any other cases where the coordinates
of the cansee() call do not exactly match up with the given sectnums.
See https://voidpoint.io/terminx/eduke32 for more details.