diff --git a/src/client/GameSave.cpp b/src/client/GameSave.cpp index 12858c7aa..bd994f7a6 100644 --- a/src/client/GameSave.cpp +++ b/src/client/GameSave.cpp @@ -2680,7 +2680,7 @@ bool GameSave::TypeInCtype(int type, int ctype) type == PT_STOR || type == PT_CONV || type == PT_STKM || type == PT_STKM2 || type == PT_FIGH || type == PT_LAVA || type == PT_SPRK || type == PT_PSTN || type == PT_CRAY || type == PT_DTEC || type == PT_DRAY || type == PT_PIPE || - type == PT_PPIP || type == PT_RAYT); + type == PT_PPIP || type == PT_LDTC); } bool GameSave::TypeInTmp(int type) diff --git a/src/simulation/elements/RAYT.cpp b/src/simulation/elements/LDTC.cpp similarity index 88% rename from src/simulation/elements/RAYT.cpp rename to src/simulation/elements/LDTC.cpp index 04a028110..dd0de267e 100644 --- a/src/simulation/elements/RAYT.cpp +++ b/src/simulation/elements/LDTC.cpp @@ -1,11 +1,11 @@ #include "simulation/Elements.h" #include -//#TPT-Directive ElementClass Element_RAYT PT_RAYT 186 -Element_RAYT::Element_RAYT() +//#TPT-Directive ElementClass Element_LDTC PT_LDTC 186 +Element_LDTC::Element_LDTC() { - Identifier = "DEFAULT_PT_RAYT"; - Name = "RAYT"; + Identifier = "DEFAULT_PT_LDTC"; + Name = "LDTC"; Colour = PIXPACK(0x66ff66); MenuVisible = 1; MenuSection = SC_SENSOR; @@ -30,7 +30,7 @@ Element_RAYT::Element_RAYT() Temperature = 283.15f; HeatConduct = 0; - Description = "RAYT scans in 8 directions for the element in its ctype and sparks the conductor on the opposite side"; + Description = "Linear detector. Scans in 8 directions for particles with its ctype and creates a spark on the opposite side."; Properties = TYPE_SOLID | PROP_DRAWONCTYPE | PROP_NOCTYPEDRAW; @@ -43,7 +43,7 @@ Element_RAYT::Element_RAYT() HighTemperature = ITH; HighTemperatureTransition = NT; - Update = &Element_RAYT::update; + Update = &Element_LDTC::update; } const int mask_invert_filter = 0x1; @@ -53,10 +53,10 @@ const int mask_keep_searching = 0x8; //NOTES: // ctype is used to store the target element, if any. (NONE is treated as a wildcard) -// life is used for the amount of pixels to skip before starting the scan. Starts just in front of the RAYT if 0. +// life is used for the amount of pixels to skip before starting the scan. Starts just in front of the LDTC if 0. // tmp is the number of particles that will be scanned before scanning stops. Unbounded if 0. // tmp2 is used for settings (binary flags). The flags are as follows: -// 0x01: Inverts the CTYPE filter so that the element in ctype is the only thing that doesn't trigger RAYT, instead of the opposite. +// 0x01: Inverts the CTYPE filter so that the element in ctype is the only thing that doesn't trigger LDTC, instead of the opposite. // 0x02: Ignore energy particles // 0x04: Ignore FILT (do not use color copying mode) // 0x08: Keep searching even after finding a particle @@ -83,8 +83,8 @@ bool accepted_type(Simulation* sim, int r) return false; } -//#TPT-Directive ElementHeader Element_RAYT static int update(UPDATE_FUNC_ARGS) -int Element_RAYT::update(UPDATE_FUNC_ARGS) +//#TPT-Directive ElementHeader Element_LDTC static int update(UPDATE_FUNC_ARGS) +int Element_LDTC::update(UPDATE_FUNC_ARGS) { int max = parts[i].tmp + parts[i].life; for (int rx = -1; rx <= 1; rx++) @@ -167,4 +167,4 @@ int Element_RAYT::update(UPDATE_FUNC_ARGS) return 0; } -Element_RAYT::~Element_RAYT() {} +Element_LDTC::~Element_LDTC() {}