- Joined
- Dec 31, 2005
- Messages
- 712
Hello there
I've run into a strange problem here... An arithmetic comparison simply fails:
This portion of code is run every 0.05 second. However the method Finish is only called then Time > TrainingTime (noticed that by using game messages)
If I change the comparison to
Then it works as it should...
What could be causing it and how to solve it?
Thanks!
Hossomi
I've run into a strange problem here... An arithmetic comparison simply fails:
JASS:
set Time = Time + 0.05
if Time >= TrainingTime then
call this.Finish() // This will create a unit
endif
This portion of code is run every 0.05 second. However the method Finish is only called then Time > TrainingTime (noticed that by using game messages)
If I change the comparison to
JASS:
if Time == TrainingTime then
Then it works as it should...
What could be causing it and how to solve it?
Thanks!
Hossomi