Tetris Source/TetrisInterface.cpp
void TetrisInterface::setPause(bool pause){
	paused = pause;
	if (!paused){
		delayer.setReferenceTime(delayer.getReferenceTime() + pauser.getCurrentTime());
		timer.setReferenceTime(timer.getReferenceTime() + pauser.getCurrentTime());
	} else {
		pauser.setReferenceTime(GetTickCount());
	}

}
//Sets the pause boolean, delayer and timer reference times are adjusted when unpausing

Sets the pause boolean, delayer and timer reference times are adjusted when unpausing
Sets the pause boolean delayer and timer reference times are adjusted when unpausing
void TetrisInterface::setPause(bool pause){
	paused = pause;
	if (!paused){
		delayer.setReferenceTime(delayer.getReferenceTime() + pauser.getCurrentTime());
		timer.setReferenceTime(timer.getReferenceTime() + pauser.getCurrentTime());
	} else {
		pauser.setReferenceTime(GetTickCount());
	}
}
void TetrisInterface :: setPause ( bool pause ) { paused = pause ; if ( ! paused ) { delayer . setReferenceTime ( delayer . getReferenceTime ( ) + pauser . getCurrentTime ( ) ) ; timer . setReferenceTime ( timer . getReferenceTime ( ) + pauser . getCurrentTime ( ) ) ; } else { pauser . setReferenceTime ( GetTickCount ( ) ) ; } }
Sets the pause boolean, delayer and timer reference times are adjusted when unpausing
Sets the pause boolean delayer and timer reference times are adjusted when unpausing