mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-07-31 05:30:23 +02:00
fixed indention
This commit is contained in:
19
src/powder.c
19
src/powder.c
@@ -70,8 +70,13 @@ int try_move(int i, int x, int y, int nx, int ny)
|
||||
return 1;
|
||||
|
||||
e = eval_move(parts[i].type, nx, ny, &r);
|
||||
if(!e)
|
||||
if(!e) {
|
||||
if(!legacy_enable) {
|
||||
if((r >> 8) < PT_NUM)
|
||||
| parts[r>>8].temp = restrict_flt(parts[r>>8].temp+parts[i].temp/2, MIN_TEMP, MAX_TEMP);;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
if(e == 2)
|
||||
return 1;
|
||||
|
||||
@@ -278,7 +283,7 @@ void kill_part(int i)
|
||||
#ifdef WIN32
|
||||
_inline int create_part(int p, int x, int y, int t)
|
||||
#else
|
||||
inline int create_part(int p, int x, int y, int t)
|
||||
inline int create_part(int p, int x, int y, int t)
|
||||
#endif
|
||||
{
|
||||
int i;
|
||||
@@ -494,7 +499,7 @@ _inline int create_part(int p, int x, int y, int t)
|
||||
#ifdef WIN32
|
||||
_inline void delete_part(int x, int y)
|
||||
#else
|
||||
inline void delete_part(int x, int y)
|
||||
inline void delete_part(int x, int y)
|
||||
#endif
|
||||
{
|
||||
unsigned i;
|
||||
@@ -512,7 +517,7 @@ _inline void delete_part(int x, int y)
|
||||
#ifdef WIN32
|
||||
_inline int is_wire(int x, int y)
|
||||
#else
|
||||
inline int is_wire(int x, int y)
|
||||
inline int is_wire(int x, int y)
|
||||
#endif
|
||||
{
|
||||
return bmap[y][x]==6 || bmap[y][x]==7 || bmap[y][x]==3 || bmap[y][x]==8 || bmap[y][x]==11 || bmap[y][x]==12;
|
||||
@@ -521,7 +526,7 @@ _inline int is_wire(int x, int y)
|
||||
#ifdef WIN32
|
||||
_inline int is_wire_off(int x, int y)
|
||||
#else
|
||||
inline int is_wire_off(int x, int y)
|
||||
inline int is_wire_off(int x, int y)
|
||||
#endif
|
||||
{
|
||||
return (bmap[y][x]==6 || bmap[y][x]==7 || bmap[y][x]==3 || bmap[y][x]==8 || bmap[y][x]==11 || bmap[y][x]==12) && emap[y][x]<8;
|
||||
@@ -587,7 +592,7 @@ void set_emap(int x, int y)
|
||||
#ifdef WIN32
|
||||
_inline int parts_avg(int ci, int ni)
|
||||
#else
|
||||
inline int parts_avg(int ci, int ni)
|
||||
inline int parts_avg(int ci, int ni)
|
||||
#endif
|
||||
{
|
||||
int pmr = pmap[(int)((parts[ci].y + parts[ni].y)/2)][(int)((parts[ci].x + parts[ni].x)/2)];
|
||||
@@ -1964,7 +1969,7 @@ void update_particles_i(pixel *vid, int start, int inc)
|
||||
}
|
||||
}
|
||||
}
|
||||
killed:
|
||||
killed:
|
||||
if(parts[i].type == PT_NONE)
|
||||
continue;
|
||||
}
|
||||
|
Reference in New Issue
Block a user