diff options
author | Kari Salminen | 2008-08-12 00:13:27 +0000 |
---|---|---|
committer | Kari Salminen | 2008-08-12 00:13:27 +0000 |
commit | c935a09ef53a594f408d3279cd30c783bade9ed1 (patch) | |
tree | 978ee3b4f51bda09a73dc27d07121ebc650c452b /engines/cine/various.h | |
parent | 96a1ca17090eb17157707a9e989eec3ebb7c94fc (diff) | |
download | scummvm-rg350-c935a09ef53a594f408d3279cd30c783bade9ed1.tar.gz scummvm-rg350-c935a09ef53a594f408d3279cd30c783bade9ed1.tar.bz2 scummvm-rg350-c935a09ef53a594f408d3279cd30c783bade9ed1.zip |
Changed commandBuffer from a char[80] to Common::String and made FWRenderer::setCommand use a Common::String. Hopefully this might help with the command buffer overflow stuff, although this isn't a fix for the problem behind it, just a bandaid.
svn-id: r33793
Diffstat (limited to 'engines/cine/various.h')
-rw-r--r-- | engines/cine/various.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/cine/various.h b/engines/cine/various.h index c38017ceaa..0ee77c1b47 100644 --- a/engines/cine/various.h +++ b/engines/cine/various.h @@ -33,6 +33,9 @@ namespace Cine { +// Maximum size of the command buffer including the trailing zero +#define kMaxCommandBufferSize 80 + void initLanguage(Common::Language lang); int16 makeMenuChoice(const CommandeType commandList[], uint16 height, uint16 X, uint16 Y, uint16 width, bool recheckValue = false); @@ -85,7 +88,7 @@ extern byte _danKeysPressed; extern int16 playerCommand; -extern char commandBuffer[80]; +extern Common::String commandBuffer; extern char currentPrcName[20]; extern char currentRelName[20]; |