summaryrefslogtreecommitdiff
path: root/src/scripting/lua.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-04-26 17:05:18 +0200
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-04-26 17:18:21 +0200
commit43e99491a76bb85faf60c004e84b6c2b14cf41e7 (patch)
tree4aba689b76138118b4da043425fb3e8576db418c /src/scripting/lua.cpp
parente726c34606f85347e70a0deb6b180db03b6d0c25 (diff)
downloadmanaserv-43e99491a76bb85faf60c004e84b6c2b14cf41e7.tar.gz
manaserv-43e99491a76bb85faf60c004e84b6c2b14cf41e7.tar.bz2
manaserv-43e99491a76bb85faf60c004e84b6c2b14cf41e7.tar.xz
manaserv-43e99491a76bb85faf60c004e84b6c2b14cf41e7.zip
Standardize on the position of the const keyword
Same as for the client.
Diffstat (limited to 'src/scripting/lua.cpp')
-rw-r--r--src/scripting/lua.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/scripting/lua.cpp b/src/scripting/lua.cpp
index 9ddc68e0..c2c6baf9 100644
--- a/src/scripting/lua.cpp
+++ b/src/scripting/lua.cpp
@@ -68,7 +68,7 @@ static int npc_message(lua_State *s)
NPC *p = getNPC(s, 1);
Character *q = getCharacter(s, 2);
size_t l;
- char const *m = lua_tolstring(s, 3, &l);
+ const char *m = lua_tolstring(s, 3, &l);
if (!p || !q || !m)
{
raiseScriptError(s, "npc_message called with incorrect parameters.");
@@ -98,7 +98,7 @@ static int npc_choice(lua_State *s)
msg.writeShort(p->getPublicID());
for (int i = 3, i_end = lua_gettop(s); i <= i_end; ++i)
{
- char const *m = lua_tostring(s, i);
+ const char *m = lua_tostring(s, i);
if (!m)
{
raiseScriptError(s, "npc_Choice called with incorrect parameters.");
@@ -601,7 +601,7 @@ static int chr_get_quest(lua_State *s)
raiseScriptError(s, "chr_get_quest called for nonexistent character.");
}
- char const *m = lua_tostring(s, 2);
+ const char *m = lua_tostring(s, 2);
if (!m || m[0] == 0)
{
raiseScriptError(s, "chr_get_quest called with incorrect parameters.");
@@ -629,8 +629,8 @@ static int chr_get_quest(lua_State *s)
static int chr_set_quest(lua_State *s)
{
Character *q = getCharacter(s, 1);
- char const *m = lua_tostring(s, 2);
- char const *n = lua_tostring(s, 3);
+ const char *m = lua_tostring(s, 2);
+ const char *n = lua_tostring(s, 3);
if (!m || !n || m[0] == 0)
{
raiseScriptError(s, "chr_set_quest called with incorrect parameters.");