summaryrefslogtreecommitdiff
path: root/src/simulation/elements
diff options
context:
space:
mode:
authorjacob1 <jfu614@gmail.com>2013-05-08 14:29:10 (GMT)
committer jacob1 <jfu614@gmail.com>2013-05-08 14:29:10 (GMT)
commitc0b45928392efdffbde819842387a041e2d1936a (patch)
treee315dc38d198a8ed05aafa1788293339b271951d /src/simulation/elements
parent77102f4bbaff9d15617b83e674939b108442ae21 (diff)
downloadpowder-c0b45928392efdffbde819842387a041e2d1936a.zip
powder-c0b45928392efdffbde819842387a041e2d1936a.tar.gz
fix PSCN BRAY (tmp = 2) not stopping normal BRAY from going through
also some other random things
Diffstat (limited to 'src/simulation/elements')
-rw-r--r--src/simulation/elements/ARAY.cpp23
-rw-r--r--src/simulation/elements/BTRY.cpp2
-rw-r--r--src/simulation/elements/GOLD.cpp2
-rw-r--r--src/simulation/elements/TUGN.cpp2
4 files changed, 13 insertions, 16 deletions
diff --git a/src/simulation/elements/ARAY.cpp b/src/simulation/elements/ARAY.cpp
index f7d3194..b1c2b84 100644
--- a/src/simulation/elements/ARAY.cpp
+++ b/src/simulation/elements/ARAY.cpp
@@ -78,20 +78,17 @@ int Element_ARAY::update(UPDATE_FUNC_ARGS)
parts[nr].temp = parts[i].temp;
}
} else if (!destroy) {
- if ((r&0xFF)==PT_BRAY) {
- if (parts[r>>8].tmp==0){//if it hits another BRAY that isn't red
- if (nyy!=0 || nxx!=0) {
- parts[r>>8].life = 1020;//makes it last a while
- parts[r>>8].tmp = 1;
- if (!parts[r>>8].ctype)//and colors it if it isn't already
- parts[r>>8].ctype = colored;
- }
- docontinue = 0;//then stop it
- }
- else if (parts[r>>8].tmp==1) {//if it hits one that already was a long life, reset it
- parts[r>>8].life = 1020;
- //docontinue = 1;
+ if ((r&0xFF)==PT_BRAY&&parts[r>>8].tmp==0) {//if it hits another BRAY that isn't red
+ if (nyy!=0 || nxx!=0) {
+ parts[r>>8].life = 1020;//makes it last a while
+ parts[r>>8].tmp = 1;
+ if (!parts[r>>8].ctype)//and colors it if it isn't already
+ parts[r>>8].ctype = colored;
}
+ docontinue = 0;//then stop it
+ } else if ((r&0xFF)==PT_BRAY&&parts[r>>8].tmp==1) {//if it hits one that already was a long life, reset it
+ parts[r>>8].life = 1020;
+ //docontinue = 1;
} else if ((r&0xFF)==PT_FILT) {//get color if passed through FILT
colored = parts[r>>8].ctype;
//this if prevents BRAY from stopping on certain materials
diff --git a/src/simulation/elements/BTRY.cpp b/src/simulation/elements/BTRY.cpp
index f4a5d06..00fd426 100644
--- a/src/simulation/elements/BTRY.cpp
+++ b/src/simulation/elements/BTRY.cpp
@@ -28,7 +28,7 @@ Element_BTRY::Element_BTRY()
Temperature = R_TEMP+0.0f +273.15f;
HeatConduct = 251;
- Description = "Solid. Generates infinite electricity.";
+ Description = "Generates infinite electricity.";
State = ST_SOLID;
Properties = TYPE_SOLID;
diff --git a/src/simulation/elements/GOLD.cpp b/src/simulation/elements/GOLD.cpp
index 09ff5cb..8536aca 100644
--- a/src/simulation/elements/GOLD.cpp
+++ b/src/simulation/elements/GOLD.cpp
@@ -29,7 +29,7 @@ Element_GOLD::Element_GOLD()
Temperature = R_TEMP+0.0f +273.15f;
HeatConduct = 251;
- Description = "Corrosion resistant metal, will reverse corrosion of iron";
+ Description = "Corrosion resistant metal, will reverse corrosion of iron.";
State = ST_SOLID;
Properties = TYPE_SOLID|PROP_CONDUCTS|PROP_HOT_GLOW|PROP_LIFE_DEC|PROP_NEUTPASS;
diff --git a/src/simulation/elements/TUGN.cpp b/src/simulation/elements/TUGN.cpp
index 9614ae5..4fb8032 100644
--- a/src/simulation/elements/TUGN.cpp
+++ b/src/simulation/elements/TUGN.cpp
@@ -29,7 +29,7 @@ Element_TUGN::Element_TUGN()
Temperature = R_TEMP+0.0f +273.15f;
HeatConduct = 251;
- Description = "Brittle metal with a very high melting point";
+ Description = "Brittle metal with a very high melting point.";
State = ST_SOLID;
Properties = TYPE_SOLID|PROP_CONDUCTS|PROP_LIFE_DEC;