| ||||||||||
If you do it this way, a sick person would get 75% slower each time step. It would only take two or three time steps before they'd stop completely. BTW, did you mean == instead of =? Mark Guzdial |
Why not put the line speed = 0.25 * speed;right after this.infect();? Then it only occurs once, when the person gets infected.Mark Guzdial |