Skip to content

Commit

Permalink
Updated version number
Browse files Browse the repository at this point in the history
Minor code cosmetic edits.
  • Loading branch information
NovaRain committed Jul 8, 2024
1 parent f53fc1f commit 9dce219
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
6 changes: 3 additions & 3 deletions sfall/Modules/HeroAppearance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ static void surface_draw(long width, long height, long fromWidth, long fromX, lo
static void DrawBody(long critNum, BYTE* surface, long x, long y, long toWidth) {
DWORD critFrmLock;

fo::FrmFile *critFrm = fo::func::art_ptr_lock(BuildFrmId(1, critNum), &critFrmLock);
fo::FrmFile* critFrm = fo::func::art_ptr_lock(BuildFrmId(1, critNum), &critFrmLock);
DWORD critWidth = fo::func::art_frame_width(critFrm, 0, charRotOri);
DWORD critHeight = fo::func::art_frame_length(critFrm, 0, charRotOri);
BYTE* critSurface = fo::func::art_frame_data(critFrm, 0, charRotOri);
Expand Down Expand Up @@ -656,7 +656,7 @@ static void __stdcall DrawCharNoteNewChar(bool type) {
void __stdcall HeroSelectWindow(int raceStyleFlag) {
if (!HeroAppearance::appModEnabled) return;

fo::FrmFile *frm = LoadUnlistedFrmCached("AppHeroWin.frm", fo::OBJ_TYPE_INTRFACE);
fo::FrmFile* frm = LoadUnlistedFrmCached("AppHeroWin.frm", fo::OBJ_TYPE_INTRFACE);
if (frm == nullptr) {
fo::func::debug_printf("\nApperanceMod: art\\intrface\\AppHeroWin.frm file not found.");
return;
Expand Down Expand Up @@ -1150,7 +1150,7 @@ static __declspec(naked) void FixCharScrnBack() {
if (charScrnBackSurface == nullptr) {
charScrnBackSurface = new BYTE [640 * 480];

fo::FrmFile *frm = LoadUnlistedFrmCached((fo::var::glblmode) ? "AppChCrt.frm" : "AppChEdt.frm", fo::OBJ_TYPE_INTRFACE);
fo::FrmFile* frm = LoadUnlistedFrmCached((fo::var::glblmode) ? "AppChCrt.frm" : "AppChEdt.frm", fo::OBJ_TYPE_INTRFACE);
if (frm != nullptr) {
surface_draw(640, 480, 640, 0, 0, frm->frameData[0].data, 640, 0, 0, charScrnBackSurface);
} else {
Expand Down
5 changes: 2 additions & 3 deletions sfall/Modules/LoadGameHook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -288,13 +288,12 @@ static bool LoadGame_Before() {
// called whenever game is being reset (prior to loading a save or when returning to main menu)
static bool __stdcall GameReset(DWORD isGameLoad) {
onGameReset.invoke();
inLoop = 0;
gameLoaded = false;

if (isDebug) {
char* str = (isGameLoad) ? "on Load" : "on Exit";
fo::func::debug_printf("\nSFALL: [State reset %s]\n", str);
}
inLoop = 0;
gameLoaded = false;

return (isGameLoad) ? LoadGame_Before() : false;
}
Expand Down
6 changes: 3 additions & 3 deletions sfall/Modules/Scripting/Handlers/Utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -267,15 +267,15 @@ static const char* sprintf_lite(OpcodeContext& ctx, const char* opcodeName) {
c = 's'; // don't allow wide strings
}
if (c == 's' && !arg.isString() || // don't allow treating non-string values as string pointers
c == 'n') // don't allow "n" specifier
c == 'n') // don't allow "n" specifier
{
c = 'd';
}
newFmt[j++] = c;
newFmt[j] = '\0';
partLen = arg.isFloat()
? _snprintf(outBuf, bufCount, newFmt, arg.floatValue())
: _snprintf(outBuf, bufCount, newFmt, arg.rawValue());
? _snprintf(outBuf, bufCount, newFmt, arg.floatValue())
: _snprintf(outBuf, bufCount, newFmt, arg.rawValue());
}
outBuf += partLen;
bufCount -= partLen;
Expand Down
4 changes: 2 additions & 2 deletions sfall/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@
#define VERSION_MAJOR 4
#define VERSION_MINOR 4
#define VERSION_BUILD 4
#define VERSION_REV 0
#define VERSION_REV 1

#define VERSION_STRING "4.4.4"
#define VERSION_STRING "4.4.4.1"

0 comments on commit 9dce219

Please sign in to comment.