Skip to content

Commit

Permalink
PlayerController: Removed outdated movement information
Browse files Browse the repository at this point in the history
  • Loading branch information
ataulien committed Jul 1, 2018
1 parent b0c2938 commit e4effc9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
5 changes: 0 additions & 5 deletions src/logic/PlayerController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ PlayerController::PlayerController(World::WorldInstance& world,
, m_PathFinder(world)
, m_CharacterEquipment(world, entity)
{
m_AIState.closestWaypoint = 0;
m_NPCProperties.enablePhysics = true;

m_MoveState.direction = Math::float3(1, 0, 0);
Expand All @@ -96,8 +95,6 @@ PlayerController::PlayerController(World::WorldInstance& world,
m_MoveState.ground.triangleIndex = 0;
m_MoveState.ground.waterDepth = 0;
m_MoveState.ground.trianglePosition = Math::float3(0, 0, 0);
m_AIState.targetWaypoint = World::Waynet::INVALID_WAYPOINT;
m_AIState.closestWaypoint = World::Waynet::INVALID_WAYPOINT;

m_ScriptState.npcHandle = scriptInstance;

Expand Down Expand Up @@ -188,8 +185,6 @@ void PlayerController::onUpdate(float deltaTime)

void PlayerController::teleportToWaypoint(size_t wp)
{
m_AIState.closestWaypoint = wp;

teleportToPosition(m_World.getWaynet().waypoints[wp].position);

setDirection(m_World.getWaynet().waypoints[wp].direction);
Expand Down
6 changes: 0 additions & 6 deletions src/logic/PlayerController.h
Original file line number Diff line number Diff line change
Expand Up @@ -463,12 +463,6 @@ namespace Logic

struct
{
// Waypoint this NPC is closest to/was last positioned at
size_t closestWaypoint;

// Waypoint the NPC is going to
size_t targetWaypoint;

// Handle to the Mob currently used by this NPC, if valid
Handle::EntityHandle usedMob;

Expand Down

0 comments on commit e4effc9

Please sign in to comment.