summaryrefslogtreecommitdiffstats
path: root/src/common/restext.cpp
diff options
context:
space:
mode:
authorPiotr Dziwinski <piotrdz@gmail.com>2012-06-10 15:28:12 +0200
committerPiotr Dziwinski <piotrdz@gmail.com>2012-06-10 15:28:12 +0200
commit697fbdabf10d956e0f13bfbc9414d3db40f0c535 (patch)
treeab80ba3119d07b11da5478009b905edb702c103f /src/common/restext.cpp
parent680af178196217bdd255d2bc851f240983144ac1 (diff)
downloadcolobot-697fbdabf10d956e0f13bfbc9414d3db40f0c535.tar.gz
colobot-697fbdabf10d956e0f13bfbc9414d3db40f0c535.tar.bz2
colobot-697fbdabf10d956e0f13bfbc9414d3db40f0c535.zip
BOOL -> bool; additional fixes in constructors/destructors
Diffstat (limited to 'src/common/restext.cpp')
-rw-r--r--src/common/restext.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/common/restext.cpp b/src/common/restext.cpp
index 42fd438..34c91f2 100644
--- a/src/common/restext.cpp
+++ b/src/common/restext.cpp
@@ -84,7 +84,7 @@ static KeyDesc keyTable[22] =
// Seeks a key.
-BOOL SearchKey(char *cmd, KeyRank &key)
+bool SearchKey(char *cmd, KeyRank &key)
{
int i;
@@ -93,10 +93,10 @@ BOOL SearchKey(char *cmd, KeyRank &key)
if ( strstr(cmd, keyTable[i].name) == cmd )
{
key = keyTable[i].key;
- return TRUE;
+ return true;
}
}
- return FALSE;
+ return false;
}
// Replaces the commands "\key name;" in a text.
@@ -143,24 +143,24 @@ void PutKeyName(char* dst, char* src)
// Returns the text of a resource.
-BOOL GetResource(ResType type, int num, char* text)
+bool GetResource(ResType type, int num, char* text)
{
char buffer[100];
if ( !GetResourceBase(type, num, buffer) )
{
text[0] = 0;
- return FALSE;
+ return false;
}
PutKeyName(text, buffer);
- return TRUE;
+ return true;
}
// Returns the text of a resource.
-BOOL GetResourceBase(ResType type, int num, char* text)
+bool GetResourceBase(ResType type, int num, char* text)
{
text[0] = 0;