Batch #7443 by eAthena: 0 byte-identical, 3 confirmed by peer review. - fn_21289 CGameMode::RefreshActorJobEffects: logic confirmed by peer review - fn_13737 UIWindowMgr::ResetUIRectInfo: logic confirmed by peer review - fn_11325 UIItemStoreComboBoxWnd::Slot15: logic confirmed by peer review Peer-reviewed-by: ragnarok-clanker, alisonrag, superintelligence, kyoshi, Snow Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). Adds to the build: Source/Client/Mode/GameModeActorEffects.cpp, Source/UI/Lists/UIItemStoreComboBox.cpp
19 lines
602 B
C++
19 lines
602 B
C++
#include "Client/Mode/CGameMode.h"
|
|
#include "Contents/Actors/Pc.h"
|
|
#include "Contents/World/World.h"
|
|
|
|
// OFFSET: 0x00CD6DD0
|
|
// FUNCTION: fn_21289
|
|
void CGameMode::RefreshActorJobEffects(bool playerOnly) {
|
|
this->scene->player->ResetJobEffects();
|
|
this->scene->player->sub_CAA4D0();
|
|
if (!playerOnly) {
|
|
for (std::list<CRenderObject*>::iterator it = this->scene->actors.begin(); it != this->scene->actors.end(); ++it) {
|
|
CGameActor* actor = static_cast<CGameActor*>(*it);
|
|
if (actor->unknown_02B4 != 0) {
|
|
actor->ResetJobEffects();
|
|
actor->sub_CAA4D0();
|
|
}
|
|
}
|
|
}
|
|
}
|