mirror of
https://github.com/sfall-team/sfall.git
synced 2026-07-27 16:52:34 -07:00
Removed the version check of external HRP for ActionPointsBar
(tested on v4.1.7 and v3.0.6)
This commit is contained in:
+1
-2
@@ -110,8 +110,7 @@ FadeMultiplier=100
|
||||
;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
|
||||
[Interface]
|
||||
;Set to 1 to expand the number of action points displayed on the interface bar
|
||||
;Requires new iface_apbar_e.frm in art\intrface\ (included in sfall.dat) to display correctly
|
||||
;The minimum supported version of the hi-res patch is v4.1.8
|
||||
;Requires a new IFACE_APBAR_E.frm in art\intrface\ (included in sfall.dat) to display correctly
|
||||
ActionPointsBar=0
|
||||
|
||||
;Set to 1 to use the expanded barter/trade interface with 4 item slots per table instead of 3
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
|
||||
#include "..\main.h"
|
||||
#include "..\FalloutEngine\Fallout2.h"
|
||||
#include "..\FalloutEngine\Structs.h"
|
||||
#include "LoadGameHook.h"
|
||||
|
||||
#include "ExtraArt.h"
|
||||
|
||||
@@ -20,18 +20,13 @@
|
||||
|
||||
#include "Module.h"
|
||||
|
||||
namespace fo
|
||||
{
|
||||
struct FrmFile;
|
||||
}
|
||||
|
||||
namespace sfall
|
||||
namespace sfall
|
||||
{
|
||||
|
||||
struct PcxFile {
|
||||
unsigned char* pixelData;
|
||||
long width;
|
||||
long height;
|
||||
BYTE* pixelData;
|
||||
long width;
|
||||
long height;
|
||||
|
||||
PcxFile() : pixelData(nullptr), width(0), height(0) {}
|
||||
};
|
||||
|
||||
@@ -179,13 +179,8 @@ static void APBarRectPatch() {
|
||||
}
|
||||
|
||||
static void ActionPointsBarPatch() {
|
||||
dlog("Applying expanded action points bar patch.", DL_INIT);
|
||||
dlogr("Applying expanded action points bar patch.", DL_INIT);
|
||||
if (HRP::Setting::ExternalEnabled()) {
|
||||
// check valid data
|
||||
if (!HRP::Setting::VersionIsValid) {
|
||||
dlogr(" Incorrect HRP version!", DL_INIT);
|
||||
return;
|
||||
}
|
||||
LoadGameHook::OnAfterGameInit() += APBarRectPatch;
|
||||
} else {
|
||||
APBarRectPatch();
|
||||
@@ -200,7 +195,6 @@ static void ActionPointsBarPatch() {
|
||||
HookCall(0x45D962, intface_init_hook_unlock_iface_frm);
|
||||
MakeCall(0x45E356, intface_init_hack);
|
||||
MakeJump(0x45EE38, intface_update_move_points_hack, 1);
|
||||
dlogr(" Done", DL_INIT);
|
||||
}
|
||||
|
||||
static long costAP = -1;
|
||||
|
||||
Reference in New Issue
Block a user