From 78b47b938a09b2fb5fbc2dbd7fe3502bb29fc662 Mon Sep 17 00:00:00 2001 From: ansstuff Date: Sun, 26 May 2013 16:20:38 +0000 Subject: [PATCH] * fixed filename reference in Luabot.lua (#603) * SDL: fixed instructions counting (even though the only way to see the value of the counter is to use debugger.getinstructionscount() in Lua) --- trunk/output/luaScripts/Luabot.lua | 2 +- trunk/src/debug.cpp | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/trunk/output/luaScripts/Luabot.lua b/trunk/output/luaScripts/Luabot.lua index 0cd70032..e20cd9f7 100644 --- a/trunk/output/luaScripts/Luabot.lua +++ b/trunk/output/luaScripts/Luabot.lua @@ -142,7 +142,7 @@ function createGUI(n) -- ok, file selected, if an error occurred or user canceled, the function already returned, so lets write the bot! -- get the framework first. we need it to find the relevant tokens - local fh = assert(io.open("basicbot_framework.lua","r")); + local fh = assert(io.open("luabot_framework.lua","r")); local framework = fh:read("*a"); fh:close(); diff --git a/trunk/src/debug.cpp b/trunk/src/debug.cpp index d3a28c9e..6c04b95a 100644 --- a/trunk/src/debug.cpp +++ b/trunk/src/debug.cpp @@ -740,10 +740,8 @@ void DebugCycle() uint16 A = 0; int size; -#ifdef WIN32 // since this function is called once for every instruction, we can use it for keeping statistics IncrementInstructionsCounters(); -#endif if (scanline == 240) {