Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/TurtleArt/tacollaboration.py
diff options
context:
space:
mode:
Diffstat (limited to 'TurtleArt/tacollaboration.py')
-rw-r--r--TurtleArt/tacollaboration.py15
1 files changed, 11 insertions, 4 deletions
diff --git a/TurtleArt/tacollaboration.py b/TurtleArt/tacollaboration.py
index 4f4406b..7021e9a 100644
--- a/TurtleArt/tacollaboration.py
+++ b/TurtleArt/tacollaboration.py
@@ -1,4 +1,4 @@
-#Copyright (c) 2011-12 Walter Bender
+#Copyright (c) 2011-13 Walter Bender
#Copyright (c) 2011 Collabora Ltd. <http://www.collabora.co.uk/>
#Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -401,9 +401,16 @@ class Collaboration():
[nick, poly_points] = data_from_string(payload)
shared_poly_points = []
for i in range(len(poly_points)):
- shared_poly_points.append(
- (self._tw.turtles.turtle_to_screen_coordinates
- (poly_points[i][0], poly_points[i][1])))
+ if poly_points[i][0] == 'move':
+ shared_poly_points.append(
+ (self._tw.turtles.turtle_to_screen_coordinates
+ (poly_points[i][1], poly_points[i][2])))
+ elif poly_points[i][0] in ['rarc', 'larc']:
+ shared_poly_points.append(
+ (self._tw.turtles.turtle_to_screen_coordinates
+ (poly_points[i][1], poly_points[i][2]),
+ poly_points[i][3], poly_points[i][4],
+ poly_points[i][5]))
if nick != self._tw.nick:
self._tw.turtles.set_turtle(nick)
self._tw.turtles.get_active_turtle().set_poly_points(