From 7bf60474879c52a9b10198e0571a4a46c8dd1fec Mon Sep 17 00:00:00 2001 From: Kirill Petrashin Date: Thu, 26 Mar 2026 14:14:28 +0300 Subject: Add cost defines and draw path cost under the map --- config.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'config.h') diff --git a/config.h b/config.h index a540c5c..a2c97dd 100644 --- a/config.h +++ b/config.h @@ -1,6 +1,9 @@ #ifndef CONFIG_H_ #define CONFIG_H_ +#define COST_ORTHOGONAL 10 +#define COST_DIAGONAL 14 /* sqrt(2) * 10 */ + /* The characters that represent different tiles. * Some have two characters -- that's because of the rendering trick where we * use two characters back-to-back so they look like a square. */ -- cgit v1.2.3