Am Dienstag, 6. Februar 2007 schrieb [EMAIL PROTECTED]:
> Who made the changes in this part/file ?
> It crashes when you load a level now :(
>
> ==================
>               //if (psStats->numWeaps == 0 && psStats->pSensor != NULL)
>         if (psStats->psWeapStat == NULL && psStats->pSensor != NULL)
>               {
>                       mask = SCR_ST_SENSOR;
>               }
>               //else if (psStats->numWeaps > 0)
>         else if (psStats->psWeapStat != NULL)
>               {
>                       //psWStats = psStats->asWeapList[0];
>             psWStats = psStats->psWeapStat[0];
>                       if (!proj_Direct(psWStats))
> ** crash here          psWstats = undefined.
> --------------
> +             psStats->psWeapStat[0]  0x00000000 {ref=??? pName=???
> techLevel=??? ...}    _weapon_stats *
> ---------
> +             psStats->psWeapStat     0x086480c4      _weapon_stats * [4]
> ----------
> +             psStats 0x08648068 {ref=852072 pName=0x0859c7e4 "Sys-
> SensoTower02" type=6 ...}     _structure_stats *

I guess you are refering to this chunk?
  4  per          break;
  4  per  case REF_DEFENSE:
  4  per          //if (psStats->numWeaps == 0 && psStats->pSensor != NULL)
  4  per    if (psStats->psWeapStat == NULL && psStats->pSensor != NULL)
  4  per          {
  4  per                  mask = SCR_ST_SENSOR;
  4  per          }
  4  per          //else if (psStats->numWeaps > 0)
  4  per    else if (psStats->psWeapStat != NULL)
  4  per          {
  4  per                  //psWStats = psStats->asWeapList[0];
499 troman           psWStats = psStats->psWeapStat[0];
  4  per                  if (!proj_Direct(psWStats))
  4  per                  {
  4  per                          mask = SCR_ST_DEF_IDF;
  4  per                  }
  4  per                  else if (psWStats->surfaceToAir & SHOOT_IN_AIR)
  4  per                  {
  4  per                          mask = SCR_ST_DEF_AIR;
  4  per                  }
  4  per                  else

As it looks it is unmodified since more than 200 commits... Nothing that 
crashes just since a while. Maybe the problem is at another place, when 
initializing whatever variable is causing problems.
(I had a bit of problems understanding your email after the "crash here" 
bit... "psWstats = undefined"? Undefined Symbol? Or what do you mean? And 
what does the rest of the mail want to tell me?

--Dennis

Attachment: pgp56r1zGvh2F.pgp
Description: PGP signature

_______________________________________________
Warzone-dev mailing list
Warzone-dev@gna.org
https://mail.gna.org/listinfo/warzone-dev

Reply via email to