mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-05 18:41:05 +00:00
Pause shader animation timer in singleplayer pause menu (#12766)
Co-authored-by: sfan5 <sfan5@live.de>
This commit is contained in:
parent
6ac38aa2c8
commit
0251b01da6
3 changed files with 36 additions and 24 deletions
|
@ -142,7 +142,7 @@ public:
|
|||
{ m_camera_offset = camera_offset; }
|
||||
v3s16 getCameraOffset() const { return m_camera_offset; }
|
||||
|
||||
void updateFrameTime();
|
||||
void updateFrameTime(bool is_paused);
|
||||
u64 getFrameTime() const { return m_frame_time; }
|
||||
|
||||
private:
|
||||
|
@ -157,5 +157,6 @@ private:
|
|||
IntervalLimiter m_active_object_light_update_interval;
|
||||
std::list<std::string> m_player_names;
|
||||
v3s16 m_camera_offset;
|
||||
u64 m_frame_time;
|
||||
u64 m_frame_time = 0;
|
||||
u64 m_frame_time_pause_accumulator = 0;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue