mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-23 15:53:16 +00:00
Bug fixes and more game setup options.
- Added "Screenshot Mode" and "Fog of War" game attributes. (Screenshot Mode causes units to be initialized to Hold stance instead of Aggress and also forces LOS to be All Visible. Atlas turn on Screenshot Mode by default so units don't try to kill each other in there.) - Modified LOSManager to allow disabling fog of war. - Removed some debug message spam. - Enabled line antialiasing for aura rendering and fixed some bugs that caused strange effects (color was not set properly for the center point, and when a unit was both mouseover'ed and selected, the aura was drawn twice). - Modified Stand stance to allow retaliation on attacks (normally Stand will attack any enemy in LOS, but this is useful if a neutral unit is in LOS). - Modified pathfinder to not take into account terrain slope, which is an expensive calculation - we'll eventually take into account terrain type instead. This was SVN commit r4527.
This commit is contained in:
@@ -11,12 +11,14 @@
|
||||
#include "maths/MathUtil.h"
|
||||
#include "Entity.h"
|
||||
|
||||
int AURA_CIRCLE_POINTS;
|
||||
int SELECTION_CIRCLE_POINTS;
|
||||
int SELECTION_BOX_POINTS;
|
||||
int SELECTION_SMOOTHNESS_UNIFIED = 9;
|
||||
|
||||
CEntityManager::CEntityManager()
|
||||
: m_collisionPatches(0)
|
||||
, m_screenshotMode(false)
|
||||
, m_entities() // janwas: default-initialize entire array;
|
||||
// CHandle ctor sets m_entity and m_refcount to 0
|
||||
{
|
||||
@@ -31,6 +33,7 @@ CEntityManager::CEntityManager()
|
||||
if( SELECTION_SMOOTHNESS_UNIFIED < 0 ) SELECTION_SMOOTHNESS_UNIFIED = 0;
|
||||
SELECTION_CIRCLE_POINTS = 7 + 2 * SELECTION_SMOOTHNESS_UNIFIED;
|
||||
SELECTION_BOX_POINTS = 1 + SELECTION_SMOOTHNESS_UNIFIED;
|
||||
AURA_CIRCLE_POINTS = 7 + 3 * SELECTION_SMOOTHNESS_UNIFIED;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user