Batch #3770 by eAthena: 3 byte-identical, 0 confirmed by peer review. - fn_07516 CTetraBallEffect::Slot06: byte-identical - fn_07526 CTriangleShotArrow::Slot03: byte-identical - fn_07543 CWindEffect::Slot06: byte-identical Merged automatically: every function is byte-identical to the original. Adds to the build: Source/Contents/Effects/TetraBallEffect.cpp, Source/Contents/Effects/TriangleShotArrow.cpp, Source/Contents/Effects/ViolentQuakeEffect.cpp, Source/Contents/Effects/WindEffect.cpp
27 lines
663 B
C++
27 lines
663 B
C++
#include "Contents/Effects/WindEffect.h"
|
|
|
|
#include "Contents/Effects/Particle.h"
|
|
|
|
// OFFSET: 0x00730870
|
|
// FUNCTION: fn_07543
|
|
bool CWindEffect::Slot06() {
|
|
return this->ActorExists();
|
|
}
|
|
|
|
// OFFSET: 0x00731030
|
|
void CWindEffect::Slot04() {
|
|
for (auto it = this->particles.begin(); it != this->particles.end(); ++it) {
|
|
CParticle* particle = *it;
|
|
if (!particle) {
|
|
continue;
|
|
}
|
|
|
|
const int texPart = particle->unknown_000C;
|
|
if (texPart <= 0) {
|
|
continue;
|
|
}
|
|
|
|
const ParticleQuad quad = {true, 0.0f, 1.0f, static_cast<float>(texPart - 1) / 21.0f, static_cast<float>(texPart) / 21.0f, false, true};
|
|
particle->Render(quad);
|
|
}
|
|
}
|