aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--world.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/world.cpp b/world.cpp
index fecd956..b38979a 100644
--- a/world.cpp
+++ b/world.cpp
@@ -323,8 +323,9 @@ void World::print(ScreenBuffer &sb) const {
for(int x=0;x<SIZE;x++){
if(board[y][x]==nullptr)sb.printf("..");
else {
- char c="^>v<"[board[y][x]->heading%4];
- sb.printf("%c%c",c,c);
+ char c2="^>v<"[board[y][x]->heading%4];
+ char c1=board[y][x]->active?c2:'X';
+ sb.printf("%c%c",c1,c2);
}
sb.printf(" ");
}