Fix DEUT explosion

This commit is contained in:
jacksonmj 2011-05-17 18:37:13 +08:00 committed by Simon Robertshaw
parent 7482e4d071
commit 603844f97f

View File

@ -1,8 +1,11 @@
#include <element.h> #include <element.h>
#if defined(WIN32) && !defined(__GNUC__)
_inline int create_n_parts(int n, int x, int y, float vx, float vy, int t)
#else
inline int create_n_parts(int n, int x, int y, float vx, float vy, int t)//testing a new deut create part inline int create_n_parts(int n, int x, int y, float vx, float vy, int t)//testing a new deut create part
#endif
{ {
int i, c; int i, c;
n = (n/50); n = (n/50);
@ -80,7 +83,7 @@ int update_NEUT(UPDATE_FUNC_ARGS) {
#ifdef SDEUT #ifdef SDEUT
else if ((r&0xFF)==PT_DEUT && (pressureFactor+1+(parts[i].life/100))>(rand()%1000)) else if ((r&0xFF)==PT_DEUT && (pressureFactor+1+(parts[i].life/100))>(rand()%1000))
{ {
//create_n_parts(parts[r>>8].life, x+rx, y+ry, parts[i].vx, parts[i].vy, PT_NEUT); create_n_parts(parts[r>>8].life, x+rx, y+ry, parts[i].vx, parts[i].vy, PT_NEUT);
kill_part(r>>8); kill_part(r>>8);
} }
#else #else