Decompile fn_07056 (CMeteorEffect::Slot01)
Batch #13296 by cremane: 0 byte-identical, 1 confirmed by peer review. - fn_07056 CMeteorEffect::Slot01: logic confirmed by peer review Peer-reviewed-by: eAthena, Tanke, Toshiro 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
313430eba1
commit
d8140195f6
1 changed files with 2 additions and 2 deletions
|
|
@ -39,10 +39,10 @@ void CMeteorEffect::Slot01() {
|
|||
|
||||
for (long long i = 0; i < count; ++i) {
|
||||
vector3d pos;
|
||||
const int r1 = spanPlus1 != 0 ? std::max(rand() % spanPlus1, 0) : 0;
|
||||
const int r1 = spanPlus1 != 0 ? std::ranges::max(rand() % spanPlus1, 0) : 0;
|
||||
pos.x = static_cast<float>(r1) - halfSpan + this->position[0];
|
||||
pos.y = this->position[1];
|
||||
const int r2 = spanPlus1 != 0 ? std::max(rand() % spanPlus1, 0) : 0;
|
||||
const int r2 = spanPlus1 != 0 ? std::ranges::max(rand() % spanPlus1, 0) : 0;
|
||||
pos.z = static_cast<float>(r2) - halfSpan + this->position[2];
|
||||
|
||||
CSpriteParticle* particle = static_cast<CSpriteParticle*>(CreateSpriteParticle(&pos, 1));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue