Code correction to DebugEditor.cpp

This commit is contained in:
NovaRain
2022-01-15 11:59:13 +08:00
parent f839c8374a
commit 6bf967e877
3 changed files with 5 additions and 8 deletions
+1
View File
@@ -3,6 +3,7 @@
[Main]
;Set to 1 to enable the built-in High Resolution Patch mode that is similar to the hi-res patch by Mash
;The required settings will be read from f2_res.ini configuration file from the original hi-res patch
HiResMode=1
;Set to 1 if you want to use command line args to tell sfall to use another ini file
+2 -6
View File
@@ -21,7 +21,7 @@
#include "..\main.h"
#include "..\FalloutEngine\Fallout2.h"
#include "..\InputFuncs.h"
#include "Graphics.h"
//#include "Graphics.h"
#include "LoadGameHook.h"
#include "ScriptExtender.h"
#include "Scripting\Arrays.h"
@@ -61,10 +61,6 @@ struct sArray {
long flag;
};
static void DEGameWinRedraw() {
if (Graphics::mode != 0) fo::func::process_bk(); // test for mode 1/2 (from built-in HRP)
}
static bool SetBlocking(SOCKET s, bool block) {
DWORD d = !block;
ioctlsocket(s, FIONBIO, &d);
@@ -226,7 +222,7 @@ static void RunEditorInternal(SOCKET &s) {
}
break;
}
DEGameWinRedraw();
__asm call fo::funcoffs::GNW95_process_message_;
}
SetGlobals(sglobals);
+2 -2
View File
@@ -1013,10 +1013,10 @@ static void InterfaceWindowPatch() {
SafeWriteBytes(0x470971, code, 11); // calculates the offset in the pixel array for x/y coordinates
// Increase the max text width of the player name on the character screen
SafeWriteBatch<BYTE>(127, {0x435160, 0x435189}); // 100
SafeWriteBatch<BYTE>(127, {0x435160, 0x435189}); // 100 (PrintBigname_)
// Increase the max text width of the information card on the character screen
SafeWriteBatch<BYTE>(145, {0x43ACD5, 0x43DD37}); // 136, 133
SafeWriteBatch<BYTE>(145, {0x43ACD5, 0x43DD37}); // 136, 133 (DrawCard_, DrawCard2_)
// Increase the width of the mouse drop area from 64px to 80px for the PC's and NPC's inventory on the barter screen
// barter_move_from_table_inventory_