Maintenance: [forced, user-approved] Family W2: remove invented SpriteDrawingPolicy and AccessoryLayerDepth reference structs; their

Batch #10252 by ragnarok-clanker: forced by an admin (1 lower score(s), 10 changed function(s)); checked with 11 compiled unit(s), including every includer of Source/Contents/Actors/CharacterRender.h, Source/Contents/Actors/SpriteDrawingPolicy.h.
Deletes: Source/Contents/Actors/SpriteDrawingPolicy.h
This commit is contained in:
ragnarok-clanker 2026-11-03 12:41:12 +00:00
commit 2fa3c6677c
13 changed files with 78 additions and 107 deletions

View file

@ -2,7 +2,6 @@
#include "Client/Mode/ModeMgr.h"
#include "Client/Session.h"
#include "Contents/Actors/CharacterRender.h"
#include "Contents/Actors/SpriteDrawingPolicy.h"
#include "Contents/Camera/Camera.h"
#include "Render/DeviceContext/DCSurface.h"
#include "Render/SpriteGeometry.h"
@ -27,7 +26,7 @@ void CCharacterRender::RenderRobe(
return;
}
if (reinterpret_cast<const SpriteDrawingPolicy*>(this)->DrawOnTop() == drawOnTop) {
if (this->DrawOnTop() == drawOnTop) {
std::string sprName = g_session.GetRobeSprName(
this->unknown_0010, this->unknown_0014, this->unknown_0018[0], this->unknown_00BC, this->unknown_004C, this->unknown_0050
);
@ -65,7 +64,7 @@ void CCharacterRender::RenderRobe(
SpriteColor color;
float bottomDepth;
float topDepth;
reinterpret_cast<const SpriteDrawingPolicy*>(this)->ProjectCell(
this->ProjectCell(
layer, layer, scale, cell, x, y, position, shift, bottomDepth, topDepth, *image, reinterpret_cast<SpriteCellQuad&>(quad), bounds, color, 0, 0,
!drawOnTop
);