summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-12-05 22:17:25 +0000
committerrubidium <rubidium@openttd.org>2010-12-05 22:17:25 +0000
commit7e9b132d0498c63cec0686071b8339523b7643c4 (patch)
tree45f303bc5efa50d8c79eb34a263cc92308b1536a /src
parent1d96ac6ca3eee1c25f20770d19f2e5c10d8b796a (diff)
downloadopenttd-7e9b132d0498c63cec0686071b8339523b7643c4.tar.xz
(svn r21403) -Change: the maximum size of the string argument of a command
Diffstat (limited to 'src')
-rw-r--r--src/command_type.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/command_type.h b/src/command_type.h
index f9e890c70..db9cfb06c 100644
--- a/src/command_type.h
+++ b/src/command_type.h
@@ -382,12 +382,12 @@ typedef void CommandCallback(const CommandCost &result, TileIndex tile, uint32 p
* Structure for buffering the build command when selecting a station to join.
*/
struct CommandContainer {
- TileIndex tile; ///< tile command being executed on
- uint32 p1; ///< parameter p1
- uint32 p2; ///< parameter p2
- uint32 cmd; ///< command being executed
- CommandCallback *callback; ///< any callback function executed upon successful completion of the command
- char text[80]; ///< possible text sent for name changes etc
+ TileIndex tile; ///< tile command being executed on.
+ uint32 p1; ///< parameter p1.
+ uint32 p2; ///< parameter p2.
+ uint32 cmd; ///< command being executed.
+ CommandCallback *callback; ///< any callback function executed upon successful completion of the command.
+ char text[32 * MAX_CHAR_LENGTH]; ///< possible text sent for name changes etc, in bytes including '\0'.
};
#endif /* COMMAND_TYPE_H */