if ( (yintercept >> FRACBITS) == mapy)
{
yintercept += ystep; mapx += mapxstep;
}
else if ( (xintercept >> FRACBITS) == mapx)
{
xintercept += xstep; mapy += mapystep;
}
}
// go through the sorted list
return P_TraverseIntercepts ( trav, FRACUNIT );
}
9.13 p mobj.c
// Emacs style mode select -*- C++ -*- //-----------------------------------------------------------------------------
//
//$Id:$
//Copyright (C) 1993-1996 by id Software, Inc.
//This program is free software; you can redistribute it and/or
//modify it under the terms of the GNU General Public License
//as published by the Free Software Foundation; either version 2
//of the License, or (at your option) any later version.
//
//This program is distributed in the hope that it will be useful,
//but WITHOUT ANY WARRANTY; without even the implied warranty of
//MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
//GNU General Public License for more details.
//
//$Log:$
//DESCRIPTION:
//Moving object handling. Spawn functions.
//-----------------------------------------------------------------------------
static const char
rcsid[] = "$Id: p_mobj.c,v 1.5 1997/02/03 22:45:12 b1 Exp $";
#include "i_system.h" #include "z_zone.h" #include "m_random.h"
#include "doomdef.h" #include "p_local.h" #include "sounds.h"
#include "st_stuff.h" #include "hu_stuff.h"
#include "s_sound.h"
#include "doomstat.h"
void G_PlayerReborn (int player);