mirror of
https://github.com/1dot13/source.git
synced 2026-08-19 14:20:30 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user