Batch #4536 by youko: 0 byte-identical, 1 confirmed by peer review. - fn_19132 CRainbowEffect::Slot04: logic confirmed by peer review Peer-reviewed-by: eAthena, willerthal Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
25 lines
765 B
C++
25 lines
765 B
C++
#include "Contents/Effects/RainbowEffect.h"
|
|
|
|
#include "Client/Mode/CGameMode.h"
|
|
#include "Client/Mode/ModeMgr.h"
|
|
#include "Contents/Camera/Camera.h"
|
|
#include "Contents/Effects/Particle.h"
|
|
#include "Utility/Math/AffineMatrix.h"
|
|
|
|
#include <cstring>
|
|
|
|
// OFFSET: 0x00B70E00
|
|
|
|
// OFFSET: 0x00B714C0
|
|
// FUNCTION: fn_19132
|
|
void CRainbowEffect::Slot04() {
|
|
for (std::vector<CParticle*>::iterator it = this->bands.begin(); it != this->bands.end(); ++it) {
|
|
CParticle* particle = *it;
|
|
|
|
if (particle && particle->unknown_000C > 0) {
|
|
const int segment = particle->unknown_000C;
|
|
const ParticleQuad quad = {false, static_cast<float>(segment - 1) / 21.0f, static_cast<float>(segment) / 21.0f, 0.0f, 1.0f, false, true};
|
|
particle->Render(quad);
|
|
}
|
|
}
|
|
}
|