Fix to make soldier continue towards destination if previous path ended with a special move

Re-integrated LUA and console.  Still many things to finish though.


git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@1048 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Overhaul
2007-07-14 04:25:07 +00:00
parent 0c6b247cf5
commit 99e45d697e
6 changed files with 74 additions and 13 deletions
+22 -1
View File
@@ -38,11 +38,14 @@
#include "zmouse.h"
#include <iostream>
#include "ExceptionHandling.h"
#include "dbt.h"
#include "INIReader.h"
#include "Console.h"
#include "Lua Interpreter.h"
#ifdef JA2
#include "BuildDefines.h"
@@ -454,7 +457,25 @@ INT32 FAR PASCAL WindowProcedure(HWND hWindow, UINT16 Message, WPARAM wParam, LP
if (wParam == '\\' &&
lParam && KF_ALTDOWN)
{
g_Console.Create(NULL);
g_Console.Create(ghWindow);
cout << "LUA console ready" << endl;
cout << "> ";
}
break;
case WM_INPUTREADY:
{
wstring *tstr = (wstring*) lParam;
if (EvalLua( tstr->c_str()))
{
tstr->erase();
}
else
{
cout << ">";
}
cout << "> ";
}
break;
default