diff options
-rw-r--r-- | world.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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(" "); } |