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:
elexis
2017-04-05 03:59:20 +00:00
parent c0708da215
commit 5d49e6c456
11 changed files with 277 additions and 312 deletions
+3 -5
View File
@@ -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;