Fix vision: remove NO_MACRO_CPATH
The non-macro q_path() function wrappers in vision.c pass the first two arguments in the wrong order to the _q*_path() functions, swapping rows and columns. This causes the Bresenham line-of-sight code to use column values as row indices into viz_clear_rows[ROWNO], producing out-of-bounds access and infinite loops. NO_MACRO_CPATH selects these broken function wrappers. It was only defined for Amiga (in config1.h), so the bug never triggered on other platforms. Remove the define to use the correct macro versions.
This commit is contained in:
@@ -95,7 +95,7 @@
|
||||
#undef UNIX
|
||||
#define DLB
|
||||
#define HACKDIR "NetHack:"
|
||||
#define NO_MACRO_CPATH
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user