Skip to content

Commit

Permalink
Fixing Infinitely Spinning Dropped Items (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuaskelly authored Sep 6, 2020
1 parent 0a0d626 commit 24d57b0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Dungeoneer/src/com/interrupt/dungeoneer/game/Game.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,16 @@
import com.interrupt.dungeoneer.generator.SectionDefinition;
import com.interrupt.dungeoneer.gfx.DecalManager;
import com.interrupt.dungeoneer.gfx.animation.lerp3d.LerpedAnimationManager;
import com.interrupt.dungeoneer.input.Actions;
import com.interrupt.dungeoneer.input.Actions.Action;
import com.interrupt.dungeoneer.input.ControllerState;
import com.interrupt.dungeoneer.input.GamepadManager;
import com.interrupt.dungeoneer.screens.GameScreen;
import com.interrupt.dungeoneer.serializers.KryoSerializer;
import com.interrupt.dungeoneer.ui.*;
import com.interrupt.dungeoneer.ui.Hud.DragAndDropResult;
import com.interrupt.managers.*;
import com.interrupt.managers.EntityManager;
import com.interrupt.managers.ItemManager;
import com.interrupt.managers.MonsterManager;
import com.interrupt.managers.StringManager;
import com.interrupt.utils.Logger;
import com.interrupt.utils.OSUtils;

Expand Down Expand Up @@ -1252,6 +1253,7 @@ else if(equipLoc != null)
swap.x = dragging.x;
swap.y = dragging.y;
swap.z = dragging.z;
swap.physicsSleeping = false;
swap.isActive = true;
Game.instance.level.entities.add(swap);
}
Expand Down

0 comments on commit 24d57b0

Please sign in to comment.