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:
parent
88b2de90c3
commit
2fa3c6677c
13 changed files with 78 additions and 107 deletions
|
|
@ -1,19 +1,20 @@
|
|||
#include "Contents/Actors/SpriteDrawingPolicy.h"
|
||||
#include "Client/Session.h"
|
||||
#include "Contents/Actors/CharacterRender.h"
|
||||
#include "Script/LuaScript.h"
|
||||
|
||||
// OFFSET: 0x0080E3A0
|
||||
// FUNCTION: fn_10106
|
||||
bool SpriteDrawingPolicy::DrawOnTop() const {
|
||||
bool CCharacterRender::DrawOnTop() const {
|
||||
bool drawOnTop = true;
|
||||
|
||||
if (this->newDrawOnTop == 1) {
|
||||
if (g_session.m_newRobeDrawOnTop == 1) {
|
||||
int unusedPriority = 1;
|
||||
this->script.Call(
|
||||
"_New_DrawOnTop", "ddddd>bd", this->argument00BC, this->argument0018, this->argument0010, this->argument0040, this->argument0044, &drawOnTop,
|
||||
g_luaScript->Call(
|
||||
"_New_DrawOnTop", "ddddd>bd", this->unknown_00BC, this->unknown_0018[0], this->unknown_0010, this->unknown_0040, this->unknown_0044, &drawOnTop,
|
||||
&unusedPriority
|
||||
);
|
||||
} else {
|
||||
this->script.Call("DrawOnTop", "ddddd>b", this->argument00BC, this->argument0018, this->argument0010, this->argument0040, this->argument0044, &drawOnTop);
|
||||
g_luaScript->Call("DrawOnTop", "ddddd>b", this->unknown_00BC, this->unknown_0018[0], this->unknown_0010, this->unknown_0040, this->unknown_0044, &drawOnTop);
|
||||
}
|
||||
|
||||
return drawOnTop;
|
||||
|
|
@ -21,7 +22,7 @@ bool SpriteDrawingPolicy::DrawOnTop() const {
|
|||
|
||||
// OFFSET: 0x008124B0
|
||||
// FUNCTION: fn_10111
|
||||
bool SpriteDrawingPolicy::SetRobe(int robe) {
|
||||
this->argument00BC = robe;
|
||||
return this->script.CallTable("TB_Layer_Priority", "IsHelmRobe", "d>b", robe, &this->helmRobe);
|
||||
bool CCharacterRender::SetRobe(int robe) {
|
||||
this->unknown_00BC = robe;
|
||||
return g_luaScript->CallTable("TB_Layer_Priority", "IsHelmRobe", "d>b", robe, &this->unknown_00C0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue