summaryrefslogtreecommitdiff
path: root/src/script/api/script_story_page.cpp
diff options
context:
space:
mode:
authorzuu <zuu@openttd.org>2013-06-09 14:13:59 +0000
committerzuu <zuu@openttd.org>2013-06-09 14:13:59 +0000
commit53d2e785f5638cee8f09173ed0d724fbe5552815 (patch)
tree3793f71062e5dcdd94df37afa3dd0269c525b29b /src/script/api/script_story_page.cpp
parentdda71a15d1c4a2a768f3e1197413b21663480591 (diff)
downloadopenttd-53d2e785f5638cee8f09173ed0d724fbe5552815.tar.xz
(svn r25381) -Fix: Silent story book compiler warnings
Diffstat (limited to 'src/script/api/script_story_page.cpp')
-rw-r--r--src/script/api/script_story_page.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/script/api/script_story_page.cpp b/src/script/api/script_story_page.cpp
index 8d6253b3c..aabe6befc 100644
--- a/src/script/api/script_story_page.cpp
+++ b/src/script/api/script_story_page.cpp
@@ -86,16 +86,16 @@
StoryPage *p = StoryPage::Get(pe->page);
::StoryPageElementType type = pe->type;
- EnforcePrecondition(false, (type != SPET_TEXT && type != SPET_LOCATION) || (text != NULL && !StrEmpty(text->GetEncodedText())));
- EnforcePrecondition(false, type != SPET_LOCATION || ::IsValidTile(reference));
- EnforcePrecondition(false, type != SPET_GOAL || ScriptGoal::IsValidGoal((ScriptGoal::GoalID)reference));
- EnforcePrecondition(false, type != SPET_GOAL || !(p->company == INVALID_COMPANY && Goal::Get(reference)->company != INVALID_COMPANY));
+ EnforcePrecondition(false, (type != ::SPET_TEXT && type != ::SPET_LOCATION) || (text != NULL && !StrEmpty(text->GetEncodedText())));
+ EnforcePrecondition(false, type != ::SPET_LOCATION || ::IsValidTile(reference));
+ EnforcePrecondition(false, type != ::SPET_GOAL || ScriptGoal::IsValidGoal((ScriptGoal::GoalID)reference));
+ EnforcePrecondition(false, type != ::SPET_GOAL || !(p->company == INVALID_COMPANY && Goal::Get(reference)->company != INVALID_COMPANY));
- return ScriptObject::DoCommand(type == SPET_LOCATION ? reference : 0,
+ return ScriptObject::DoCommand(type == ::SPET_LOCATION ? reference : 0,
pe->page,
- type == SPET_GOAL ? reference : 0,
+ type == ::SPET_GOAL ? reference : 0,
CMD_UPDATE_STORY_PAGE_ELEMENT,
- type == SPET_TEXT || type == SPET_LOCATION ? text->GetEncodedText() : NULL,
+ type == ::SPET_TEXT || type == ::SPET_LOCATION ? text->GetEncodedText() : NULL,
&ScriptInstance::DoCommandReturnStoryPageElementID);
}