mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
New feature: additional decals adds blood spatters and structural wear on walls
Requires GameDir >= r2595 to work git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@9113 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -49,6 +49,7 @@
|
||||
#include "Animation Control.h"
|
||||
#include "Soldier Ani.h"
|
||||
#include "ASD.h" // added by Flugente
|
||||
#include "renderworld.h" // added by Flugente for SetRenderFlags( RENDER_FLAG_FULL );
|
||||
#endif
|
||||
|
||||
#ifdef COUNT_PATHS
|
||||
@@ -1992,6 +1993,9 @@ INT8 DamageStructure( STRUCTURE * pStructure, UINT8 ubDamage, UINT8 ubReason, IN
|
||||
//Since the structure is being damaged, set the map element that a structure is damaged
|
||||
gpWorldLevelData[ sGridNo ].uiFlags |= MAPELEMENT_STRUCTURE_DAMAGED;
|
||||
|
||||
// Flugente: enforce a full render, so that we can draw decals on time
|
||||
SetRenderFlags( RENDER_FLAG_FULL );
|
||||
|
||||
// We are a little damaged....
|
||||
return( 2 );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user