summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2013-07-13 06:38:54 +0000
committerrubidium <rubidium@openttd.org>2013-07-13 06:38:54 +0000
commitfac0bc4176503643e3cc297d2f2d8bd9bb2f451a (patch)
tree3bccc43617084f1305bbbe1c2425faf812fe0dfe /src
parente6ae8cf420b54f71cd5306befa4a48df35de4c63 (diff)
downloadopenttd-fac0bc4176503643e3cc297d2f2d8bd9bb2f451a.tar.xz
(svn r25594) -Fix-ish: some Doxygen warnings/errors for scripts
Diffstat (limited to 'src')
-rw-r--r--src/script/api/script_admin.hpp2
-rw-r--r--src/script/api/script_goal.hpp3
-rw-r--r--src/script/api/script_viewport.hpp2
3 files changed, 5 insertions, 2 deletions
diff --git a/src/script/api/script_admin.hpp b/src/script/api/script_admin.hpp
index 9733e5b9e..48126eac0 100644
--- a/src/script/api/script_admin.hpp
+++ b/src/script/api/script_admin.hpp
@@ -36,7 +36,7 @@ public:
* @note If the resulting JSON of your table is larger than 1450 bytes,
* nothing will be sent (and false will be returned).
*/
- static bool Send(table);
+ static bool Send(void *table);
#endif /* DOXYGEN_API */
private:
diff --git a/src/script/api/script_goal.hpp b/src/script/api/script_goal.hpp
index 5416fadf3..d47dbeb42 100644
--- a/src/script/api/script_goal.hpp
+++ b/src/script/api/script_goal.hpp
@@ -57,6 +57,9 @@ public:
QT_ERROR, ///< Showing an error; title: Error.
};
+ /**
+ * Types of buttons that can be in the question window.
+ */
enum QuestionButton {
/* Note: these values represent part of the string list starting with STR_GOAL_QUESTION_BUTTON_CANCEL */
BUTTON_CANCEL = (1 << 0), ///< Cancel button.
diff --git a/src/script/api/script_viewport.hpp b/src/script/api/script_viewport.hpp
index 38b11611b..542b58095 100644
--- a/src/script/api/script_viewport.hpp
+++ b/src/script/api/script_viewport.hpp
@@ -24,7 +24,7 @@ public:
* Scroll the viewport to the given tile, where the tile will be in the
* center of the screen.
* @param tile The tile to put in the center of the screen.
- * @pre !ScriptGame::IsMultiplayer().
+ * @pre ! ScriptGame::IsMultiplayer().
* @pre ScriptMap::IsValidTile(tile).
*/
static void ScrollTo(TileIndex tile);