aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/nebular/dialogs_nebular.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2014-05-08 11:43:23 +0300
committerFilippos Karapetis2014-05-08 11:43:23 +0300
commitb7dd01fdefd910c3c0f6291145ceab4060ae1a70 (patch)
tree12e16d4a4362011d5954e6020d85a9bdb0cd5e31 /engines/mads/nebular/dialogs_nebular.cpp
parent2502bd89966f8b6398be4fc0428aaba1831ad530 (diff)
downloadscummvm-rg350-b7dd01fdefd910c3c0f6291145ceab4060ae1a70.tar.gz
scummvm-rg350-b7dd01fdefd910c3c0f6291145ceab4060ae1a70.tar.bz2
scummvm-rg350-b7dd01fdefd910c3c0f6291145ceab4060ae1a70.zip
MADS: Remove trailing whitespace
Diffstat (limited to 'engines/mads/nebular/dialogs_nebular.cpp')
-rw-r--r--engines/mads/nebular/dialogs_nebular.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/engines/mads/nebular/dialogs_nebular.cpp b/engines/mads/nebular/dialogs_nebular.cpp
index e6e3151472..4d34c76986 100644
--- a/engines/mads/nebular/dialogs_nebular.cpp
+++ b/engines/mads/nebular/dialogs_nebular.cpp
@@ -46,7 +46,7 @@ bool DialogsNebular::show(int messageId, int objectId) {
bool commandFlag = false;
bool crFlag = false;
TextDialog *dialog = nullptr;
- _dialogWidth = 17;
+ _dialogWidth = 17;
_capitalizationMode = kUppercase;
// Loop through the lines of the returned text
@@ -157,7 +157,7 @@ bool DialogsNebular::show(int messageId, int objectId) {
if (!centerFlag)
dialog->incNumLines();
-
+
// Show the dialog
_vm->_events->setCursor(CURSOR_ARROW);
dialog->show();
@@ -218,7 +218,7 @@ bool DialogsNebular::textNoun(Common::String &dialogText, int nounNum,
bool DialogsNebular::commandCheck(const char *idStr, Common::String &valStr,
const Common::String &command) {
uint idLen = strlen(idStr);
-
+
valStr = (command.size() <= idLen) ? "" : Common::String(command.c_str() + idLen);
// Check whether the command starts with the given Id
@@ -334,8 +334,8 @@ bool CopyProtectionDialog::getHogAnusEntry(HOGANUS &entry) {
/*------------------------------------------------------------------------*/
-PictureDialog::PictureDialog(MADSEngine *vm, const Common::Point &pos,
- int maxChars, int objectId) :
+PictureDialog::PictureDialog(MADSEngine *vm, const Common::Point &pos,
+ int maxChars, int objectId) :
TextDialog(vm, FONT_INTERFACE, pos, maxChars), _objectId(objectId) {
Scene &scene = _vm->_game->_scene;
Palette &palette = *_vm->_palette;
@@ -406,7 +406,7 @@ ScreenDialog::DialogLine::DialogLine(const Common::String &s) {
/*------------------------------------------------------------------------*/
-ScreenDialog::ScreenDialog(MADSEngine *vm) : _vm(vm),
+ScreenDialog::ScreenDialog(MADSEngine *vm) : _vm(vm),
_savedSurface(MADS_SCREEN_WIDTH, MADS_SCREEN_HEIGHT) {
Game &game = *_vm->_game;
Scene &scene = game._scene;
@@ -466,7 +466,7 @@ ScreenDialog::ScreenDialog(MADSEngine *vm) : _vm(vm),
MADS_SCREEN_WIDTH, _vm->_screen._offset.y + 157));
*/
- game._fx = _vm->_screenFade == SCREEN_FADE_SMOOTH ?
+ game._fx = _vm->_screenFade == SCREEN_FADE_SMOOTH ?
kCenterVertTransition : kTransitionFadeIn;
game._trigger = 0;
_vm->_events->setCursor(CURSOR_ARROW);