[DiscordArchive] How exactly does it not work?
[DiscordArchive] How exactly does it not work?
Archived author: Thanathros • Posted: 2021-11-15T09:34:40.354000+00:00
Original source
But I havent touched C++ in a while now so most likely wrong LOL.
Archived author: Thanathros • Posted: 2021-11-15T09:34:50.181000+00:00
Original source
Oh well
Archived author: セーラム • Posted: 2021-11-15T09:35:08.381000+00:00
Original source
btw, it was error to this syntax
Archived author: Thanathros • Posted: 2021-11-15T09:38:47.555000+00:00
Original source
Ah I actually wasnt entirely wrong. Knew I faintly remember.
If the function doesn't use the argument, you can avoid warnings about unused arguments that way.
Archived author: Thanathros • Posted: 2021-11-15T09:42:12.178000+00:00
Original source
Spares you some temporary refactor shenanigans :^)
Archived author: セーラム • Posted: 2021-11-15T09:42:38.392000+00:00
Original source
hehe
Archived author: Thanathros • Posted: 2021-11-15T09:43:11.888000+00:00
Original source
But yeah, the code I copied *should* work.
Archived author: Thanathros • Posted: 2021-11-15T09:43:21.564000+00:00
Original source
If not, provide error.
Archived author: セーラム • Posted: 2021-11-15T09:43:35.225000+00:00
Original source
I have changed it to this float Unit::CalculateSpellpowerCoefficientLevelPenalty(SpellInfo const* spellInfo) const
{
if (!spellInfo->MaxLevel || GetLevel() < spellInfo->MaxLevel)
return 1.0f;
return 1.0f;
}
Archived author: セーラム • Posted: 2021-11-15T09:43:42.825000+00:00
Original source
and seems not give any errors or warrning druing compile