Fixed last game warning and a few in q3_ui.

This commit is contained in:
zturtleman 2011-03-08 09:12:02 +00:00
parent a02fabfad7
commit c5262d5c43
3 changed files with 5 additions and 15 deletions

View file

@ -316,8 +316,6 @@ void ClientImpacts( gentity_t *ent, pmove_t *pm ) {
memset( &trace, 0, sizeof( trace ) );
for (i=0 ; i<pm->numtouch ; i++) {
// STONELANCE - this should never happen, UPDATE: re-enabled
// /*
for (j=0 ; j<i ; j++) {
if (pm->touchents[j] == pm->touchents[i] ) {
break;
@ -326,12 +324,13 @@ void ClientImpacts( gentity_t *ent, pmove_t *pm ) {
if (j != i) {
continue; // duplicated
}
// */
other = &g_entities[ pm->touchents[i] ];
// STONELANCE
VectorSubtract( other->s.origin, pm->touchPos[i], trace.plane.normal );
VectorNormalize( trace.plane.normal );
VectorCopy(pm->touchPos[i], trace.endpos);
// END
other = &g_entities[ pm->touchents[i] ];
if ( ( ent->r.svFlags & SVF_BOT ) && ( ent->touch ) ) {
ent->touch( ent, other, &trace );

View file

@ -56,15 +56,6 @@ typedef struct
static teammain_t s_teammain;
static menuframework_s s_teammain_menu;
static menuaction_s s_teammain_orders;
static menuaction_s s_teammain_voice;
static menuaction_s s_teammain_joinred;
static menuaction_s s_teammain_joinblue;
static menuaction_s s_teammain_joingame;
static menuaction_s s_teammain_spectate;
/*
===============
TeamMain_MenuEvent

View file

@ -296,7 +296,7 @@ static void UI_TeamOrdersMenu_BuildBotList( void ) {
int numPlayers;
int isBot;
int n;
char playerTeam;
char playerTeam = '3';
char botTeam;
char info[MAX_INFO_STRING];