Skip to content

Commit b7f307e

Browse files
committed
When entering in boat/ship, not synchronize vehicle until the hero is inside
Problem: In RPG_RT, the character moves to the vehicle, then disappears and then the vehicle synchronizes with the hero's movement. In EasyRPG, the vehicle synchronizes before the character has moved towards it, so it teleports and moves even then. Solution: This happens because the function SyncWithPlayer, which only Game_Player should execute once it's boarded inside, it's used every turn in Game_Vehicle needlessly, rendering the other call useless. It's taken away.
1 parent 5764572 commit b7f307e

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/game_vehicle.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,6 @@ bool Game_Vehicle::CanLand() const {
412412
void Game_Vehicle::Update() {
413413
Game_Character::Update();
414414
Game_Character::UpdateSprite();
415-
SyncWithPlayer();
416415

417416
if (type == Airship) {
418417
if (IsAscending()) {

0 commit comments

Comments
 (0)