finally fixed visual studio compiling, yay
This commit is contained in:
parent
01304db892
commit
4b5337c03a
@ -4,5 +4,6 @@
|
||||
|
||||
#include "powder.h"
|
||||
#include "misc.h"
|
||||
#include "math.h"
|
||||
|
||||
#endif
|
||||
|
@ -837,9 +837,9 @@ extern inline int is_wire_off(int x, int y);
|
||||
void set_emap(int x, int y);
|
||||
|
||||
#if defined(WIN32) && !defined(__GNUC__)
|
||||
_inline int parts_avg(int ci, int ni, int t);
|
||||
extern _inline int parts_avg(int ci, int ni, int t);
|
||||
#else
|
||||
int parts_avg(int ci, int ni, int t);
|
||||
extern int parts_avg(int ci, int ni, int t);
|
||||
#endif
|
||||
|
||||
int nearest_part(int ci, int t);
|
||||
|
@ -35,12 +35,13 @@ int update_FIRW(UPDATE_FUNC_ARGS) {
|
||||
}
|
||||
else if (parts[i].tmp==2) {
|
||||
int col = rand()%200+4;
|
||||
int tmul;
|
||||
for (rx=-2; rx<3; rx++)
|
||||
for (ry=-2; ry<3; ry++)
|
||||
if (x+rx>=0 && y+ry>0 && x+rx<XRES && y+ry<YRES && (rx || ry))
|
||||
{
|
||||
r = pmap[y+ry][x+rx];
|
||||
int tmul = rand()%7;
|
||||
tmul = rand()%7;
|
||||
create_part(-1, x+rx, y+ry, PT_FIRW);
|
||||
r = pmap[y+ry][x+rx];
|
||||
if ((r>>8)>=NPART || !r)
|
||||
|
Reference in New Issue
Block a user