From 7fd2c1ca96f2972bc53a4a89cb6db582c4f6e2e1 Mon Sep 17 00:00:00 2001 From: Kirill Petrashin Date: Sat, 14 Mar 2026 15:05:03 +0300 Subject: Rename player into start --- map.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'map.c') diff --git a/map.c b/map.c index 3a8ef8f..f83269f 100644 --- a/map.c +++ b/map.c @@ -94,7 +94,7 @@ Map rbt_maze_map(size_t width, size_t height, unsigned int seed) { return map; } -void draw_map(Map map, int width, int height, Position player_pos) { +void draw_map(Map map, int width, int height, Position start) { // Draw field char c; // The char for the current tile for (int i = 0; i < height; i++) { @@ -121,9 +121,9 @@ void draw_map(Map map, int width, int height, Position player_pos) { } } - // Draw the player - attron(COLOR_PAIR(PLAYER_COLOR)); - mvaddch(player_pos.y + DRAW_MAP_OFFSET_Y, player_pos.x + DRAW_MAP_OFFSET_X, PLAYER_CHAR); - attroff(COLOR_PAIR(PLAYER_COLOR)); + // Draw the start + attron(COLOR_PAIR(START_COLOR)); + mvaddch(start.y + DRAW_MAP_OFFSET_Y, start.x + DRAW_MAP_OFFSET_X, START_CHAR); + attroff(COLOR_PAIR(START_COLOR)); } -- cgit v1.2.3