Skip to content

Commit 273e4cb

Browse files
committed
Fixed some car issues.
1 parent d78001b commit 273e4cb

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

gti.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,17 @@ void line_at(int start_x, const char *s)
194194
void draw_car(int x)
195195
{
196196
move_to_top();
197+
if (x == 23) {
198+
line_at(x, " | |");
199+
line_at(x, " ___ _ __ ___| |");
200+
line_at(x, " / _ \\| '_ \\ / _ \\ |");
201+
line_at(x, "| (_) | |_) | __/ |");
202+
line_at(x, " \\___/| .__/ \\___|_|");
203+
line_at(x, " | | ");
204+
line_at(x, " |_| ");
205+
return;
206+
}
207+
197208
line_at(x, " ,---------------.");
198209
line_at(x, " / /``````|``````\\\\");
199210
line_at(x, " / /_______|_______\\\\________");
@@ -207,6 +218,7 @@ void draw_car(int x)
207218
line_at(x, " ` X -------------- X '");
208219
line_at(x, " ':-:' ':-:' ");
209220
}
221+
210222
}
211223

212224
void clear_car(int x)

0 commit comments

Comments
 (0)