summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2024-04-15 20:19:25 +0100
committerubq323 <ubq323@ubq323.website>2024-04-15 20:19:25 +0100
commitd3eaceebe43cbb6b85125f73fbef3cf2241fe452 (patch)
tree64902701cb24bf0715364e8fddd534de1bc97190 /server
parente19852c958838688481422ed3ddd953d2dcd4309 (diff)
add stroke drawop and refactor drawop ser/deser a bit
Diffstat (limited to 'server')
-rw-r--r--server/main.ha3
1 files changed, 1 insertions, 2 deletions
diff --git a/server/main.ha b/server/main.ha
index cf8e720..2043a1d 100644
--- a/server/main.ha
+++ b/server/main.ha
@@ -197,10 +197,9 @@ fn handle_packet(
const conn = &state.connections[conn_idx];
match (packet) {
case let op: packet_reader::packet_drawop =>
- const opc = op as drawing::op_circle;
// fmt::printfln("#{}: drawop ({:+6},{:+6}) r{}",
// conn_idx,opc.pos.0,opc.pos.1, opc.radius)!;
- drawing::perform(state.pictures, opc);
+ drawing::perform(state.pictures, op);
for (let other_idx = 0z;
other_idx < len(state.connections);
other_idx += 1)