From d5a67c771f3da87ee22cbb02ebe2985e6df1f5b7 Mon Sep 17 00:00:00 2001 From: Guillaume Melquiond Date: Wed, 15 Aug 2007 07:32:01 +0000 Subject: Marked internal variables of Lua scripts as local. --- src/game-server/testing.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/game-server/testing.cpp') diff --git a/src/game-server/testing.cpp b/src/game-server/testing.cpp index 4f57631..cbff614 100644 --- a/src/game-server/testing.cpp +++ b/src/game-server/testing.cpp @@ -23,11 +23,11 @@ static void dropItem(MapComposite *map, int x, int y, int type) } static char const *npc1 = - "npc2_times = 1\n" + "local nb_times = 1\n" "function npc_handler(npc, ch)\n" " do_message(npc, ch, \"You know what?\")\n" - " do_message(npc, ch, string.format(\"I have already asked this question %d times today.\", npc2_times))\n" - " npc2_times = npc2_times + 1\n" + " do_message(npc, ch, string.format(\"I have already asked this question %d times today.\", nb_times))\n" + " nb_times = nb_times + 1\n" "end\n"; static char const *npc2 = -- cgit