mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 19:50:06 +00:00 
			
		
		
		
	Update most instances of current time to use a time offset
This commit is contained in:
		
							parent
							
								
									e0a4dee72b
								
							
						
					
					
						commit
						bd27d0e562
					
				
					 19 changed files with 48 additions and 38 deletions
				
			
		|  | @ -218,7 +218,7 @@ void TimelineManager::AnimationStepBegin() | |||
|        p->pinnedTime_ == std::chrono::system_clock::time_point {}) | ||||
|    { | ||||
|       // If the selected view type is live, select the current products
 | ||||
|       p->SelectTimeAsync(std::chrono::system_clock::now() - p->loopTime_); | ||||
|       p->SelectTimeAsync(scwx::util::time::now() - p->loopTime_); | ||||
|    } | ||||
|    else | ||||
|    { | ||||
|  | @ -385,8 +385,8 @@ TimelineManager::Impl::GetLoopStartAndEndTimes() | |||
|    if (viewType_ == types::MapTime::Live || | ||||
|        pinnedTime_ == std::chrono::system_clock::time_point {}) | ||||
|    { | ||||
|       endTime = std::chrono::floor<std::chrono::minutes>( | ||||
|          std::chrono::system_clock::now()); | ||||
|       endTime = | ||||
|          std::chrono::floor<std::chrono::minutes>(scwx::util::time::now()); | ||||
|    } | ||||
|    else | ||||
|    { | ||||
|  | @ -656,8 +656,8 @@ void TimelineManager::Impl::Step(Direction direction) | |||
|    { | ||||
|       if (direction == Direction::Back) | ||||
|       { | ||||
|          newTime = std::chrono::floor<std::chrono::minutes>( | ||||
|             std::chrono::system_clock::now()); | ||||
|          newTime = | ||||
|             std::chrono::floor<std::chrono::minutes>(scwx::util::time::now()); | ||||
|       } | ||||
|       else | ||||
|       { | ||||
|  | @ -688,7 +688,7 @@ void TimelineManager::Impl::Step(Direction direction) | |||
|          newTime += 1min; | ||||
| 
 | ||||
|          // If the new time is more than 2 minutes in the future, stop stepping
 | ||||
|          if (newTime > std::chrono::system_clock::now() + 2min) | ||||
|          if (newTime > scwx::util::time::now() + 2min) | ||||
|          { | ||||
|             break; | ||||
|          } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat