Batch #4083 by Yommy: 0 byte-identical, 1 confirmed by peer review. - fn_19145 CRotateBgEffect::Slot04: logic confirmed by peer review Peer-reviewed-by: youko, superintelligence Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). Adds to the build: Source/Contents/Effects/RotateBgEffect.cpp
21 lines
661 B
C++
21 lines
661 B
C++
#include "Contents/Effects/RotateBgEffect.h"
|
|
|
|
#include "Contents/Effects/Particle.h"
|
|
|
|
// OFFSET: 0x00B734E0
|
|
// FUNCTION: fn_19145
|
|
void CRotateBgEffect::Slot04() {
|
|
for (auto it = this->particles.begin(); it != this->particles.end(); ++it) {
|
|
if (*it) {
|
|
(*it)->Render(false, 0.0f, 1.0f, 0.0f, 1.0f, false, true);
|
|
}
|
|
}
|
|
|
|
for (auto it = this->segmentParticles.begin(); it != this->segmentParticles.end(); ++it) {
|
|
if (CParticle* particle = *it) {
|
|
const int segment = particle->unknown_000C;
|
|
const ParticleQuad quad = {false, 0.0f, 1.0f, (segment - 1) / 21.0f, segment / 21.0f, false, true};
|
|
particle->Render(quad);
|
|
}
|
|
}
|
|
}
|