summaryrefslogtreecommitdiff
path: root/src/elements/yest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/elements/yest.cpp')
-rw-r--r--src/elements/yest.cpp21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/elements/yest.cpp b/src/elements/yest.cpp
deleted file mode 100644
index 5b3fc95..0000000
--- a/src/elements/yest.cpp
+++ /dev/null
@@ -1,21 +0,0 @@
-#include "simulation/Element.h"
-
-int update_YEST(UPDATE_FUNC_ARGS) {
- int r, rx, ry;
- 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];
- if (!r)
- continue;
- if ((r&0xFF)==PT_DYST && 1>(rand()%30) && !sim->legacy_enable)
- {
- sim->part_change_type(i,x,y,PT_DYST);
- }
- }
- if (parts[i].temp>303&&parts[i].temp<317) {
- sim->create_part(-1, x+rand()%3-1, y+rand()%3-1, PT_YEST);
- }
- return 0;
-}