mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-18 10:45:27 +02:00
Pause shader animation timer in singleplayer pause menu (#12766)
Co-authored-by: sfan5 <sfan5@live.de>
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
Reference in New Issue
Block a user