mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-09-21 20:06:40 +00:00
Move most cinematic path simulation data and control from the graphics class to the simulation component and solve the hash mimatch in non-visual replay.
Move graphics code to smaller helper functions UpdateSessionVisibility, UpdateSilhouettesVisibility and DrawPaths. Remove the hotkey TODO code which should be implemented differently. Mark voids as const. Differential Revision: https://code.wildfiregames.com/D271 Patch By: Vladislav This was SVN commit r19375.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2015 Wildfire Games.
|
||||
/* Copyright (C) 2017 Wildfire Games.
|
||||
* This file is part of 0 A.D.
|
||||
*
|
||||
* 0 A.D. is free software: you can redistribute it and/or modify
|
||||
@@ -626,11 +626,9 @@ void CGameView::Update(const float deltaRealTime)
|
||||
if (!g_app_has_focus)
|
||||
return;
|
||||
|
||||
if (m->CinemaManager.GetEnabled())
|
||||
{
|
||||
m->CinemaManager.Update(deltaRealTime);
|
||||
m->CinemaManager.Update(deltaRealTime);
|
||||
if (m->CinemaManager.IsEnabled())
|
||||
return;
|
||||
}
|
||||
|
||||
// Calculate mouse movement
|
||||
static int mouse_last_x = 0;
|
||||
|
||||
Reference in New Issue
Block a user