mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-25 06:51:24 +00:00
Core Classes Reorganization:
- g_Terrain and g_Camera totally eradicated as globals, is now m_Terrain of CWorld and m_Camera of CGameView - terrainMain.cpp is almost completely empty with functionality moved into the relevant core classes - Miscellaneous global functions moved into Core Classes (mostly GameView) This was SVN commit r865.
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
#include "PathfindEngine.h"
|
||||
#include "Terrain.h"
|
||||
|
||||
extern CTerrain g_Terrain;
|
||||
#include "Game.h"
|
||||
|
||||
bool CEntity::processGotoNoPathing( CEntityOrder* current, size_t timestep_millis )
|
||||
{
|
||||
@@ -192,7 +192,7 @@ bool CEntity::processGotoNoPathing( CEntityOrder* current, size_t timestep_milli
|
||||
}
|
||||
|
||||
// Will we step off the map?
|
||||
if( !g_Terrain.isOnMap( m_position.X, m_position.Z ) )
|
||||
if( !g_Game->GetWorld()->GetTerrain()->isOnMap( m_position.X, m_position.Z ) )
|
||||
{
|
||||
// Yes. That's not a particularly good idea, either.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user