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
This commit is contained in:
parent
01decc4920
commit
865d8a45e2
1 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue