mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 19:50:05 +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
|
|
@ -3,6 +3,7 @@
|
|||
#include <scwx/qt/util/texture_atlas.hpp>
|
||||
#include <scwx/qt/util/tooltip.hpp>
|
||||
#include <scwx/util/logger.hpp>
|
||||
#include <scwx/util/time.hpp>
|
||||
|
||||
#include <execution>
|
||||
|
||||
|
|
@ -295,7 +296,7 @@ void PlacefileIcons::Render(
|
|||
// Selected time
|
||||
std::chrono::system_clock::time_point selectedTime =
|
||||
(p->selectedTime_ == std::chrono::system_clock::time_point {}) ?
|
||||
std::chrono::system_clock::now() :
|
||||
scwx::util::time::now() :
|
||||
p->selectedTime_;
|
||||
glUniform1i(
|
||||
p->uSelectedTimeLocation_,
|
||||
|
|
@ -720,7 +721,7 @@ bool PlacefileIcons::RunMousePicking(
|
|||
// If no time has been selected, use the current time
|
||||
std::chrono::system_clock::time_point selectedTime =
|
||||
(p->selectedTime_ == std::chrono::system_clock::time_point {}) ?
|
||||
std::chrono::system_clock::now() :
|
||||
scwx::util::time::now() :
|
||||
p->selectedTime_;
|
||||
|
||||
// For each pickable icon
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue