From c24b3953dbe72b7586911a36fc130fe210fed1c3 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Thu, 15 Mar 2018 15:24:02 +0100 Subject: [PATCH] Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 8 bytes modified --- 21g30t1e75.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/21g30t1e75.js b/21g30t1e75.js index 8a8987c..fca9bdb 100644 --- a/21g30t1e75.js +++ b/21g30t1e75.js @@ -245,17 +245,17 @@ GameLib.CustomCode.prototype.advanceSnake = function(delta) { if (index === 0) { - backup = { + body.advance( + this.state.orientation + ); + + backup = { position : { x : body.position.x, y : body.position.y }, orientation : body.orientation } - - body.advance( - this.state.orientation - ); } if (index > 0) {