Tremulous Forum

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

Title: some error
Post by: DarkEnix on March 11, 2008, 01: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, 01: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, 05: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, 05:21:31 am
ok , u see

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

Code: [Select]
m = fire_grounddrift( ent, muzzle, forward );
before that was

Code: [Select]
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, 06:26:00 pm
Make fire_grounddrift return an gentity_t or just remove the
Code: [Select]
gentity_t *m;

  m =

part