summaryrefslogtreecommitdiff
path: root/sys/src/games
diff options
context:
space:
mode:
authorspew <devnull@localhost>2017-03-12 18:52:36 -0500
committerspew <devnull@localhost>2017-03-12 18:52:36 -0500
commit59ed389a6eb7d405eb44d9644d69993e814dccdf (patch)
tree936f7015b9debcdc33b22336c4da543fd7cad4a4 /sys/src/games
parent3f2d3721ded93048c8f8897a3c28e61852475e7e (diff)
games/galaxy: fix creation of new bodies
I accidentally deleted the line that sets the initial position of the vector
Diffstat (limited to 'sys/src/games')
-rw-r--r--sys/src/games/galaxy/galaxy.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/src/games/galaxy/galaxy.c b/sys/src/games/galaxy/galaxy.c
index 57f9b7bbb..a51d2c917 100644
--- a/sys/src/games/galaxy/galaxy.c
+++ b/sys/src/games/galaxy/galaxy.c
@@ -265,6 +265,7 @@ dobody(void)
}
b = body();
+ b->Vector = tovector(mc->xy);
setvel(b);
setsize(b);
b->col = randcol();