Fixed TraceLine problems after map change
This commit is contained in:
parent
fc3b165e57
commit
f69da4341b
|
@ -99,7 +99,7 @@ struct weaponsVault {
|
|||
|
||||
struct traceVault {
|
||||
char * szName;
|
||||
char * szTa;
|
||||
char szTag[6];
|
||||
int iId;
|
||||
int iAction;
|
||||
float fDel;
|
||||
|
|
|
@ -288,14 +288,14 @@ void TraceLine_Post(const float *v1, const float *v2, int fNoMonsters, edict_t *
|
|||
else{
|
||||
if ( e->v.owner && e->v.owner->v.flags& (FL_CLIENT | FL_FAKECLIENT) ){
|
||||
CPlayer *pPlayer = GET_PLAYER_POINTER(e->v.owner);
|
||||
|
||||
for ( int i=0;i<MAX_TRACE;i++){
|
||||
if ( util_strncmp( traceData[i].szTa,traceData[i].start ? STRING(e->v.classname)+traceData[i].start : STRING(e->v.classname) ,traceData[i].stop) ){
|
||||
int i;
|
||||
for ( i=0;i<MAX_TRACE;i++){
|
||||
if ( util_strncmp( traceData[i].szTag,traceData[i].start ? STRING(e->v.classname)+traceData[i].start : STRING(e->v.classname) ,traceData[i].stop) ){
|
||||
if ( traceData[i].iAction & ACT_NADE_SHOT ){
|
||||
pPlayer->saveShot(traceData[i].iId);
|
||||
}
|
||||
if ( traceData[i].iAction & ACT_NADE_PUT ){
|
||||
g_grenades.put(e,traceData[i].fDel,traceData[i].iId,GET_PLAYER_POINTER(e->v.owner));
|
||||
g_grenades.put(e,traceData[i].fDel,traceData[i].iId,pPlayer);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user