Skip to content

Commit

Permalink
Update game.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
luanluciano93 committed Sep 2, 2024
1 parent 7aa080c commit 95b60cf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/game/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4188,25 +4188,25 @@ void Game::playerConfigureShowOffSocket(uint32_t playerId, const Position &pos,
std::vector<Direction> listDir;
if (player->getPathTo(pos, listDir, 0, 1, true, false)) {
g_dispatcher().addEvent([this, playerId = player->getID(), listDir] { playerAutoWalk(playerId, listDir); }, "Game::playerAutoWalk");
auto &task;
if (isPodiumOfRenown) {
task = createPlayerTask(
const auto &task = createPlayerTask(
400,
[player, item, pos, itemId, stackPos] {
player->sendPodiumWindow(item, pos, itemId, stackPos);
},
"Game::sendPodiumWindow"
);
player->setNextWalkActionTask(task);
} else {
task = createPlayerTask(
const auto &task = createPlayerTask(
400,
[player, item, pos, itemId, stackPos] {
player->sendMonsterPodiumWindow(item, pos, itemId, stackPos);
},
"Game::sendMonsterPodiumWindow"
);
player->setNextWalkActionTask(task);
}
player->setNextWalkActionTask(task);
} else {
player->sendCancelMessage(RETURNVALUE_THEREISNOWAY);
}
Expand Down

0 comments on commit 95b60cf

Please sign in to comment.