git-svn-id: https://svn.eduke32.com/eduke32@1107 1a8010ca-5511-0410-912e-c29ae57300e0

This commit is contained in:
terminx 2008-10-20 04:00:00 +00:00
parent 4074884ac2
commit a7da07bcdf
9 changed files with 75 additions and 76 deletions

View file

@ -2283,17 +2283,17 @@ BOLT:
static void bounce(int i) static void bounce(int i)
{ {
int daang, dax, day, daz, xvect, yvect, zvect; int dax, day, daz = 4096;
spritetype *s = &sprite[i]; spritetype *s = &sprite[i];
int hitsect = s->sectnum; int hitsect = s->sectnum;
int k = sector[hitsect].wallptr; int k = sector[hitsect].wallptr;
int l = wall[k].point2; int l = wall[k].point2;
xvect = mulscale10(s->xvel,sintable[(s->ang+512)&2047]); int xvect = mulscale10(s->xvel,sintable[(s->ang+512)&2047]);
yvect = mulscale10(s->xvel,sintable[s->ang&2047]); int yvect = mulscale10(s->xvel,sintable[s->ang&2047]);
zvect = s->zvel; int zvect = s->zvel;
daang = getangle(wall[l].x-wall[k].x,wall[l].y-wall[k].y); int daang = getangle(wall[l].x-wall[k].x,wall[l].y-wall[k].y);
if (s->z < (hittype[i].floorz+hittype[i].ceilingz)>>1) if (s->z < (hittype[i].floorz+hittype[i].ceilingz)>>1)
k = sector[hitsect].ceilingheinum; k = sector[hitsect].ceilingheinum;
@ -2302,7 +2302,6 @@ static void bounce(int i)
dax = mulscale14(k,sintable[(daang)&2047]); dax = mulscale14(k,sintable[(daang)&2047]);
day = mulscale14(k,sintable[(daang+1536)&2047]); day = mulscale14(k,sintable[(daang+1536)&2047]);
daz = 4096;
k = xvect*dax+yvect*day+zvect*daz; k = xvect*dax+yvect*day+zvect*daz;
l = dax*dax+day*day+daz*daz; l = dax*dax+day*day+daz*daz;

View file

@ -44,7 +44,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include <shellapi.h> #include <shellapi.h>
#endif #endif
#define BUILDDATE " 20081017" #define BUILDDATE " 20081019"
#define VERSION " 1.2.0devel" #define VERSION " 1.2.0devel"
static int floor_over_floor; static int floor_over_floor;

View file

@ -23,7 +23,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//------------------------------------------------------------------------- //-------------------------------------------------------------------------
#include "duke3d.h" #include "duke3d.h"
char *s_builddate = "20081018"; char *s_builddate = "20081019";
char *MusicPtr = NULL; char *MusicPtr = NULL;
int Musicsize; int Musicsize;