summaryrefslogtreecommitdiff
path: root/src/cgame/cg_predict.c
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2002-09-10 15:51:30 +0000
committerTim Angus <tim@ngus.net>2002-09-10 15:51:30 +0000
commiteb401f8e27491f048ca0095a3e2f984e2e3a151b (patch)
tree3ad9d5805cd39f02466b05806bdae21d96bc26c3 /src/cgame/cg_predict.c
parentd34580bce47d1977576d864b4f124549f658ea2b (diff)
* Cleanup of cg_local.h and side-effects
Diffstat (limited to 'src/cgame/cg_predict.c')
-rw-r--r--src/cgame/cg_predict.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/cgame/cg_predict.c b/src/cgame/cg_predict.c
index fabe1065..6f55f1ce 100644
--- a/src/cgame/cg_predict.c
+++ b/src/cgame/cg_predict.c
@@ -187,32 +187,32 @@ void CG_CapTrace( trace_t *result, const vec3_t start, const vec3_t mins, const
CG_PointContents
================
*/
-int CG_PointContents( const vec3_t point, int passEntityNum ) {
- int i;
+int CG_PointContents( const vec3_t point, int passEntityNum )
+{
+ int i;
entityState_t *ent;
- centity_t *cent;
- clipHandle_t cmodel;
- int contents;
+ centity_t *cent;
+ clipHandle_t cmodel;
+ int contents;
contents = trap_CM_PointContents (point, 0);
- for ( i = 0 ; i < cg_numSolidEntities ; i++ ) {
+ for( i = 0; i < cg_numSolidEntities; i++ )
+ {
cent = cg_solidEntities[ i ];
ent = &cent->currentState;
- if ( ent->number == passEntityNum ) {
+ if( ent->number == passEntityNum )
continue;
- }
- if (ent->solid != SOLID_BMODEL) { // special value for bmodel
+ if( ent->solid != SOLID_BMODEL ) // special value for bmodel
continue;
- }
cmodel = trap_CM_InlineModel( ent->modelindex );
- if ( !cmodel ) {
+
+ if( !cmodel )
continue;
- }
contents |= trap_CM_TransformedPointContents( point, cmodel, ent->origin, ent->angles );
}