Fixed error in behavior of manual reset events on wait
Fixed error in behavior of manual reset events on wait

If a manual reset event encountered a wait and succeeded (i.e. the event was set during the wait), the event's state was being changed to false. This should only have been done for auto reset events. Fixed. (hat-tip: Cristian)

neosmart/pevents,neosmart/pevents