Skip to content

Commit

Permalink
Fix harvesting creeps appearing in the wrong location
Browse files Browse the repository at this point in the history
  • Loading branch information
ricochet1k committed Apr 4, 2017
1 parent c56eb6f commit 2936468
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/scripts/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ export function actionLine(room, action, from, to) {
});
}

export function bump(g, obj, a) {
export function bump(g, gRot, obj, a) {
let {x, y} = obj;
tweenRotation(TWEEN_DURATION/2, g, obj, a);
tweenRotation(TWEEN_DURATION/2, gRot, obj, a);
tween(TWEEN_DURATION, g, v => {
if (v < 0.5) {
v = v;
Expand Down
3 changes: 1 addition & 2 deletions src/scripts/skins/original/creep.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ export class CreepSkin {

switch (k) {
case 'harvest':
bump(g, obj, a);

bump(this.g, g, obj, a);
break;

case 'say':
Expand Down

0 comments on commit 2936468

Please sign in to comment.