gGame: refactoring / optimizations for check if PT is ended
gGame: refactoring / optimizations for check if PT is ended

Avoid 2 autosaves made at the same tick (at PT end and normal autosave) 
thibmo/kam_remake,reyandme/kam_remake,reyandme/kam_remake,reyandme/kam_remake,reyandme/kam_remake,thibmo/kam_remake,reyandme/kam_remake,thibmo/kam_remake,thibmo/kam_remake,thibmo/kam_remake