Ok, well, first off I'm having some linking issues. I'll not ask you all to fix these for me (yet :P). But I am having trouble. It appears that the following code is hanging the entire mud up, making me have to restart:
The only conclusions I've come by is that the asteroid doesnt have an x/y/z. Anyways, I'd ask that you look over http://ew.xidus.net/code/3.0a.c and http://ew.xidus.net/code/asteroids.h for the actual asteroid code. Perhaps you could find any errors in the linking I've got.
for ( asteroid = ship->starsystem->first_asteroid; asteroid; asteroid = asteroid->next_in_system)
{
if (abs(ship->vx - asteroid->x) < 1 &&
abs(ship->vy - asteroid->y) < 1 &&
abs(ship->vz - asteroid->z) < 1 )
{
ship->collision = asteroid->maxhp;
asteroid->collision = ship->maxhull;
}
}
The only conclusions I've come by is that the asteroid doesnt have an x/y/z. Anyways, I'd ask that you look over http://ew.xidus.net/code/3.0a.c and http://ew.xidus.net/code/asteroids.h for the actual asteroid code. Perhaps you could find any errors in the linking I've got.