From 865d8a45e2c71da5a407f332082bf0fc77249fd3 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Wed, 28 Oct 2026 16:23:38 +0000 Subject: [PATCH] Decompile fn_07750 (CActRes::Load) Batch #1483 by ragnarok-clanker: 0 byte-identical, 1 confirmed by peer review. - fn_07750 CActRes::Load: logic confirmed by peer review Reviewed-by: ragnarok-clanker --- Source/Resource/Sprites/ActionResource.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Resource/Sprites/ActionResource.cpp b/Source/Resource/Sprites/ActionResource.cpp index f8beec62..6c2f2c88 100644 --- a/Source/Resource/Sprites/ActionResource.cpp +++ b/Source/Resource/Sprites/ActionResource.cpp @@ -63,7 +63,7 @@ bool CActRes::Load(const char* name) { input.Read(&header, sizeof(header)); if (header.magic != 0x4341) { - ShowErrorDialog(context.renderSystem, "Illegal File Format", 0); + ShowErrorDialog(context.renderSystem, "Illegal file format", 0); ShowErrorDialog(context.renderSystem, name, 0); file.Close(); @@ -147,8 +147,8 @@ bool CActRes::Load(const char* name) { const SpriteRleImage* image = sprite->images[cell.imageType][cell.image]; if (image) { - const int width = image->width * ((image->unknown_0004 & 0xFFFFu) != 0 ? 2 : 1); - const int height = image->height * ((image->unknown_0004 >> 16) != 0 ? 2 : 1); + const int width = image->width * (image->unknown_0004 != 0 ? 2 : 1); + const int height = image->height * (image->unknown_0006 != 0 ? 2 : 1); cell.x = RelativeCoordinate(cell.x, width, cell.scaleX); cell.y = RelativeCoordinate(cell.y, height, cell.scaleY); }