Check convex quads

This commit is contained in:
Miloslav Ciz 2025-02-01 19:57:33 +01:00
parent 19d3c1cbe5
commit 4cb558b85c
4 changed files with 31 additions and 5 deletions

4
map.h
View file

@ -105,7 +105,7 @@
#define LCR_BLOCK_HILL '(' ///< curved "hill"
#define LCR_BLOCK_BUMP '~' ///< small bump on the road
#define LCR_BLOCK_CORNER_CONVEX 'n' ///< curved corner (convex)
#define LCR_BLOCK_CORNER_CONCAVE 'l' ///< curved corner (concave)
#define LCR_BLOCK_CORNER_CONCAVE 'u' ///< curved corner (concave)
#define LCR_BLOCK_FULL_ACCEL '>' ///< full block with accelerator
#define LCR_BLOCK_BOTTOM_ACCEL 'z' ///< bottom half block with accelerator
@ -450,7 +450,7 @@ uint8_t LCR_mapLoadFromStr(char (*getNextCharFunc)(void), const char *name)
c = getNextCharFunc();
if (c > '0' && c <= '3')
if (c >= '0' && c <= '3')
{
mat = c - '0';
c = getNextCharFunc();