summaryrefslogtreecommitdiff
path: root/src/simulation/elements/DTEC.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-10-10 18:29:11 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-10-10 18:29:11 (GMT)
commitda07c22ee457899236c8c6d457696daa019fd07e (patch)
treee5421e6b03a8aece969c995d6bf5586e5854b8bc /src/simulation/elements/DTEC.cpp
parent249e3dcad3aa62ba09e0b712ff508d94f255a947 (diff)
downloadpowder-da07c22ee457899236c8c6d457696daa019fd07e.zip
powder-da07c22ee457899236c8c6d457696daa019fd07e.tar.gz
new elements: DMG (Force bomb) and TSNS (Temperature sensor)
Diffstat (limited to 'src/simulation/elements/DTEC.cpp')
-rw-r--r--src/simulation/elements/DTEC.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/simulation/elements/DTEC.cpp b/src/simulation/elements/DTEC.cpp
index 62b409a..38161cf 100644
--- a/src/simulation/elements/DTEC.cpp
+++ b/src/simulation/elements/DTEC.cpp
@@ -6,7 +6,7 @@ Element_DTEC::Element_DTEC()
Name = "DTEC";
Colour = PIXPACK(0xFD9D18);
MenuVisible = 1;
- MenuSection = SC_ELEC;
+ MenuSection = SC_SENSOR;
Enabled = 1;
Advection = 0.0f;
@@ -46,7 +46,8 @@ Element_DTEC::Element_DTEC()
}
-int in_radius(int rd, int x, int y)
+//#TPT-Directive ElementHeader Element_DTEC static int in_radius(int rd, int x, int y)
+int Element_DTEC::in_radius(int rd, int x, int y)
{
return (pow((double)x,2)*pow((double)rd,2)+pow((double)y,2)*pow((double)rd,2)<=pow((double)rd,2)*pow((double)rd,2));
}