aboutsummaryrefslogtreecommitdiff
path: root/engines/lure
diff options
context:
space:
mode:
authorPaul Gilbert2018-08-17 20:30:20 -0700
committerPaul Gilbert2018-08-17 20:30:20 -0700
commit11e33ba3fc1b65789358485fa50cdbc0cf26aac7 (patch)
treeebb245cf6617e1ac0b35bf3681307bcbc541b230 /engines/lure
parentc8d3af3874d7c814a9f1f03ad740c3e9f8386eaa (diff)
downloadscummvm-rg350-11e33ba3fc1b65789358485fa50cdbc0cf26aac7.tar.gz
scummvm-rg350-11e33ba3fc1b65789358485fa50cdbc0cf26aac7.tar.bz2
scummvm-rg350-11e33ba3fc1b65789358485fa50cdbc0cf26aac7.zip
JANITORIAL: Removing trailing spaces after int casts
Diffstat (limited to 'engines/lure')
-rw-r--r--engines/lure/hotspots.cpp10
-rw-r--r--engines/lure/res_struct.h4
-rw-r--r--engines/lure/surface.cpp2
3 files changed, 8 insertions, 8 deletions
diff --git a/engines/lure/hotspots.cpp b/engines/lure/hotspots.cpp
index b0b1830201..7513575bd4 100644
--- a/engines/lure/hotspots.cpp
+++ b/engines/lure/hotspots.cpp
@@ -509,7 +509,7 @@ void Hotspot::endAction() {
_voiceCtr = 0;
setActionCtr(0);
if (_hotspotId == PLAYER_ID)
- room.setCursorState((CursorState) ((int) room.cursorState() & 2));
+ room.setCursorState((CursorState) ((int)room.cursorState() & 2));
if (currentActions().top().hasSupportData()) {
CharacterScheduleEntry *rec = currentActions().top().supportData().next();
@@ -704,7 +704,7 @@ bool Hotspot::walkingStep() {
++_pathFinder.stepCtr();
} else {
warning("Hotspot %xh dir frame not found: currentFrame=%d, dir=%s",
- _hotspotId, frameNumber(), directionList[(int) _pathFinder.top().direction()]);
+ _hotspotId, frameNumber(), directionList[(int)_pathFinder.top().direction()]);
}
return false;
@@ -2781,7 +2781,7 @@ void HotspotTickHandlers::standardCharacterAnimHandler(Hotspot &h) {
assert(newEntry);
// Increment the blocked state
- h.setBlockedState((BlockedState) ((int) h.blockedState() + 1));
+ h.setBlockedState((BlockedState) ((int)h.blockedState() + 1));
if (!h.blockedFlag()) {
// Not already handling blocked, so add a new dummy action so that the new
// action set below will not replace the existing one
@@ -3095,7 +3095,7 @@ void HotspotTickHandlers::playerAnimHandler(Hotspot &h) {
h.tempDest().position.x = h.destX();
h.tempDest().position.y = h.destY();
h.tempDest().counter = 1;
- h.setBlockedState((BlockedState) ((int) h.blockedState() + 1));
+ h.setBlockedState((BlockedState) ((int)h.blockedState() + 1));
h.setRandomDest();
return;
}
@@ -4703,7 +4703,7 @@ void Support::characterChangeRoom(Hotspot &h, uint16 roomNumber,
h.tempDest().counter = 1;
Room::getReference().setCursorState(CS_BUMPED);
h.setActionCtr(0);
- h.setBlockedState((BlockedState) ((int) h.blockedState() + 1));
+ h.setBlockedState((BlockedState) ((int)h.blockedState() + 1));
h.setDestHotspot(0);
h.setRandomDest();
p.roomNumber = 0;
diff --git a/engines/lure/res_struct.h b/engines/lure/res_struct.h
index a8a5e5aca8..bf22a4a5ac 100644
--- a/engines/lure/res_struct.h
+++ b/engines/lure/res_struct.h
@@ -861,8 +861,8 @@ public:
const char *getString(int index) {
return _entries[index].c_str();
}
- const char *getString(Action action) { return getString((int) action - 1); }
- const char *getString(StringEnum sEnum) { return getString((int) sEnum); }
+ const char *getString(Action action) { return getString((int)action - 1); }
+ const char *getString(StringEnum sEnum) { return getString((int)sEnum); }
void setString(Action action, const Common::String &s) { _entries[(int)action - 1] = s; }
};
diff --git a/engines/lure/surface.cpp b/engines/lure/surface.cpp
index 7cbef0fe85..e9de795670 100644
--- a/engines/lure/surface.cpp
+++ b/engines/lure/surface.cpp
@@ -420,7 +420,7 @@ void Surface::wordWrap(char *text, uint16 width, char **&lines, uint8 &numLines)
wordEnd = strchr(wordStart, '\0') - 1;
}
- int wordBytes = (int) (wordEnd - s + 1);
+ int wordBytes = (int)(wordEnd - s + 1);
uint16 wordSize = (wordBytes == 0) ? 0 : textWidth(s, wordBytes);
if (gDebugLevel >= ERROR_DETAILED) {
char wordBuffer[MAX_DESC_SIZE];