aboutsummaryrefslogtreecommitdiff
path: root/map.c
diff options
context:
space:
mode:
authorKirill Petrashin <kirill8201@yandex.ru>2026-03-14 15:05:03 +0300
committerKirill Petrashin <kirill8201@yandex.ru>2026-03-14 15:05:03 +0300
commit7fd2c1ca96f2972bc53a4a89cb6db582c4f6e2e1 (patch)
tree17b935a1b7b38834d5cb9347c8a06ea30054a345 /map.c
parentc73a11860175a830c9b04967eac56dbd8221f311 (diff)
Rename player into start
Diffstat (limited to 'map.c')
-rw-r--r--map.c10
1 files changed, 5 insertions, 5 deletions
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));
}