Decompile 2 functions in Source/Contents/JobCodeForItem.cpp
Batch #13340 by cremane: 0 byte-identical, 2 confirmed by peer review. - fn_06465 CJobCodeForItem::InitJobCodes: logic confirmed by peer review (already on main) - fn_06467 CJobCodeForItem::IsJobAllowed: logic confirmed by peer review Peer-reviewed-by: ragnarok-clanker, gordaoprogramas, Tanke, codeplay Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
parent
30beb24b85
commit
e3e6b0b25b
1 changed files with 10 additions and 8 deletions
|
|
@ -430,20 +430,22 @@ void CJobCodeForItem::Init() {
|
|||
// OFFSET: 0x006CCBE0
|
||||
// FUNCTION: fn_06467
|
||||
bool CJobCodeForItem::IsJobAllowed(int job, unsigned long code) {
|
||||
if (code == 0xFFFFE) {
|
||||
switch (code) {
|
||||
case 0xFFFFE: {
|
||||
auto group = this->m_jobGroups.find(0);
|
||||
if (group == this->m_jobGroups.end()) {
|
||||
return false;
|
||||
}
|
||||
return group->second.find(job) == group->second.end();
|
||||
return group->second.end() == group->second.find(job);
|
||||
}
|
||||
if (code == 0xFFFFF) {
|
||||
case 0xFFFFF:
|
||||
return true;
|
||||
default: {
|
||||
auto it = this->m_jobCodes.find(code);
|
||||
if (it == this->m_jobCodes.end()) {
|
||||
return false;
|
||||
}
|
||||
return it->second.end() != it->second.find(job);
|
||||
}
|
||||
|
||||
auto it = this->m_jobCodes.find(code);
|
||||
if (it == this->m_jobCodes.end()) {
|
||||
return false;
|
||||
}
|
||||
return it->second.find(job) != it->second.end();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue