diff options
| author | Ľubomír Remák | 2018-08-04 16:57:41 +0200 |
|---|---|---|
| committer | Eugene Sandulenko | 2018-08-25 23:12:01 +0200 |
| commit | a25715a29b0587ae6795eef63a575172e2cb971d (patch) | |
| tree | b10acdeffd001f507209799498a6e9f90a585e06 /engines/mutationofjb/commands/newroomcommand.cpp | |
| parent | 6ff609c51478c07a00018e57d8149f09d97677e7 (diff) | |
| download | scummvm-rg350-a25715a29b0587ae6795eef63a575172e2cb971d.tar.gz scummvm-rg350-a25715a29b0587ae6795eef63a575172e2cb971d.tar.bz2 scummvm-rg350-a25715a29b0587ae6795eef63a575172e2cb971d.zip | |
MUTATIONOFJB: Fix code formatting issues (with astyle).
Diffstat (limited to 'engines/mutationofjb/commands/newroomcommand.cpp')
| -rw-r--r-- | engines/mutationofjb/commands/newroomcommand.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/engines/mutationofjb/commands/newroomcommand.cpp b/engines/mutationofjb/commands/newroomcommand.cpp index 818ef7d5ee..5aabc6705f 100644 --- a/engines/mutationofjb/commands/newroomcommand.cpp +++ b/engines/mutationofjb/commands/newroomcommand.cpp @@ -26,15 +26,15 @@ #include "mutationofjb/gamedata.h" #include "common/str.h" -/* - "NEWROOM " <sceneId> " " <x> " " <y> " " <frame> - - NEWROOM changes the current scene. While doing that, it also executes STARTUP section for the new room. - However, after that, the execution goes back to the old script to finish commands after NEWROOM. - - All parameters are supposed to be 3 characters long. - SceneId is the scene to load, x and y are the player's new position and frame is the player's new frame (orientation). -*/ +/** @file + * "NEWROOM " <sceneId> " " <x> " " <y> " " <frame> + * + * NEWROOM changes the current scene. While doing that, it also executes STARTUP section for the new room. + * However, after that, the execution goes back to the old script to finish commands after NEWROOM. + * + * All parameters are supposed to be 3 characters long. + * SceneId is the scene to load, x and y are the player's new position and frame is the player's new frame (orientation). + */ namespace MutationOfJB { @@ -62,7 +62,7 @@ Command::ExecuteResult NewRoomCommand::execute(ScriptExecutionContext &scriptExe if (!_innerExecCtx) { Script *newScript = game.changeSceneDelayScript(_sceneId, game.getGameData()._partB); _innerExecCtx = new ScriptExecutionContext(scriptExecCtx.getGame(), newScript); - res =_innerExecCtx->startStartupSection(); + res = _innerExecCtx->startStartupSection(); } else { res = _innerExecCtx->runActiveCommand(); } |
