TraceLine tweaks

This commit is contained in:
Lukasz Wlasinksi 2004-06-27 16:31:40 +00:00
parent 8885714465
commit fc3b165e57

View File

@ -290,7 +290,7 @@ void TraceLine_Post(const float *v1, const float *v2, int fNoMonsters, edict_t *
CPlayer *pPlayer = GET_PLAYER_POINTER(e->v.owner); CPlayer *pPlayer = GET_PLAYER_POINTER(e->v.owner);
for ( int i=0;i<MAX_TRACE;i++){ for ( int i=0;i<MAX_TRACE;i++){
if ( util_strncmp( traceData[i].szName,traceData[i].start ? STRING(e->v.classname)+traceData[i].start : STRING(e->v.classname) ,traceData[i].stop) ){ if ( util_strncmp( traceData[i].szTa,traceData[i].start ? STRING(e->v.classname)+traceData[i].start : STRING(e->v.classname) ,traceData[i].stop) ){
if ( traceData[i].iAction & ACT_NADE_SHOT ){ if ( traceData[i].iAction & ACT_NADE_SHOT ){
pPlayer->saveShot(traceData[i].iId); pPlayer->saveShot(traceData[i].iId);
} }