Skip to content

Commit 3b8a224

Browse files
committed
up
1 parent 3306fd4 commit 3b8a224

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

kbe/src/server/cellapp/entity.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -910,7 +910,7 @@ uint32 Entity::addProximity(float range_xz, float range_y, int32 userarg)
910910
}
911911

912912
// 在space中投放一个陷阱
913-
ProximityController* p = new ProximityController(this, range_xz, range_y, userarg, pControllers_->freeID());
913+
ProximityController* p = new ProximityController(this, range_xz, range_y, userarg);
914914
bool ret = pControllers_->add(p);
915915
KBE_ASSERT(ret);
916916
return p->id();
@@ -1777,7 +1777,7 @@ uint32 Entity::navigate(const Position3D& destination, float velocity, float ran
17771777

17781778
velocity = velocity / g_kbeSrvConfig.gameUpdateHertz();
17791779

1780-
MoveController* p = new MoveController(this, NULL, pControllers_->freeID());
1780+
MoveController* p = new MoveController(this, NULL);
17811781

17821782
new NavigateHandler(p, destination, velocity,
17831783
range, faceMovement, maxMoveDistance, maxDistance, girth, userData);
@@ -1841,7 +1841,7 @@ uint32 Entity::moveToPoint(const Position3D& destination, float velocity, PyObje
18411841

18421842
velocity = velocity / g_kbeSrvConfig.gameUpdateHertz();
18431843

1844-
MoveController* p = new MoveController(this, NULL, pControllers_->freeID());
1844+
MoveController* p = new MoveController(this, NULL);
18451845

18461846
new MoveToPointHandler(p, layer(), destination, velocity,
18471847
0.0f, faceMovement, moveVertically, userData);
@@ -1904,7 +1904,7 @@ uint32 Entity::moveToEntity(ENTITY_ID targetID, float velocity, float range, PyO
19041904

19051905
velocity = velocity / g_kbeSrvConfig.gameUpdateHertz();
19061906

1907-
MoveController* p = new MoveController(this, NULL, pControllers_->freeID());
1907+
MoveController* p = new MoveController(this, NULL);
19081908

19091909
new MoveToEntityHandler(p, targetID, velocity, range,
19101910
faceMovement, moveVertically, userData);

0 commit comments

Comments
 (0)