Tremulous Forum

Mods => Modding Center => Topic started by: DarkEnix on March 11, 2008, 12:48:20 AM

Title: some error
Post by: DarkEnix on March 11, 2008, 12:48:20 AM
what dose it mean by

operands of = have illegal types `pointer to struct gentity_s' and `int'
Title: Re: some error
Post by: kevlarman on March 11, 2008, 12:58:29 AM
it means you can't assign an int to a gentity_t*
Title: Re: some error
Post by: DarkEnix on March 11, 2008, 04:08:32 AM
an int? , i cant find any int in my cmd though , might it be at other places?
Title: Re: some error
Post by: DarkEnix on March 11, 2008, 04:21:31 AM
ok , u see

my error was in src/game/g_weapon.c:394
under line 394 was

m = fire_grounddrift( ent, muzzle, forward );

before that was

void grounddriftfire( gentity_t *ent )
{
  gentity_t *m;

  m = fire_grounddrift( ent, muzzle, forward );

Title: Re: some error
Post by: Thomsen on March 25, 2008, 05:26:00 PM
Make fire_grounddrift return an gentity_t or just remove the

gentity_t *m;

  m =


part