aboutsummaryrefslogtreecommitdiff
path: root/test-client/visual.ts
diff options
context:
space:
mode:
Diffstat (limited to 'test-client/visual.ts')
-rw-r--r--test-client/visual.ts10
1 files changed, 6 insertions, 4 deletions
diff --git a/test-client/visual.ts b/test-client/visual.ts
index 4bbfac6c..37ae732d 100644
--- a/test-client/visual.ts
+++ b/test-client/visual.ts
@@ -133,10 +133,12 @@ function draw_character(character: number) {
ctx.arc(0, 0, PLAYER_SIZE, 0, Math.PI * 2)
ctx.fill()
- ctx.fillStyle = `hsl(${character}rad, 80%, 10%)`
- ctx.beginPath()
- ctx.arc(0, -0.2, PLAYER_SIZE, 0, Math.PI * 2)
- ctx.fill()
+ if (character > 0) {
+ ctx.fillStyle = `hsl(${character}rad, 80%, 10%)`
+ ctx.beginPath()
+ ctx.arc(0, -0.2, PLAYER_SIZE, 0, Math.PI * 2)
+ ctx.fill()
+ }
ctx.fillStyle = `hsl(${character}rad, 80%, 70%)`
ctx.beginPath()