diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-08-06 15:14:08 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-08-06 15:14:08 (GMT) |
| commit | 662640c96c86ba83132f0683c35bfba24b43783c (patch) | |
| tree | 5f0b5270d9410a683d45909e789c478c01d6d6e0 /src/simulation/elements/SOAP.cpp | |
| parent | 0e43f2e83118897bc916db69a012f4686429d930 (diff) | |
| download | powder-662640c96c86ba83132f0683c35bfba24b43783c.zip powder-662640c96c86ba83132f0683c35bfba24b43783c.tar.gz | |
Fix previous merge with SOAP.cpp that created a bug in SOAP. add debug lines for PRTI, PRTO, WIFI and lines for SOAP.
Diffstat (limited to 'src/simulation/elements/SOAP.cpp')
| -rw-r--r-- | src/simulation/elements/SOAP.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/simulation/elements/SOAP.cpp b/src/simulation/elements/SOAP.cpp index d4ed39d..1d3a55b 100644 --- a/src/simulation/elements/SOAP.cpp +++ b/src/simulation/elements/SOAP.cpp @@ -43,6 +43,7 @@ Element_SOAP::Element_SOAP() HighTemperatureTransition = NT; Update = &Element_SOAP::update; + Graphics = &Element_SOAP::graphics; } @@ -120,7 +121,7 @@ int Element_SOAP::update(UPDATE_FUNC_ARGS) parts[i].vx *= 0.5f; } - if(parts[i].ctype&2) + if(!(parts[i].ctype&2)) { for (rx=-2; rx<3; rx++) for (ry=-2; ry<3; ry++) @@ -279,5 +280,12 @@ int Element_SOAP::update(UPDATE_FUNC_ARGS) return 0; } +//#TPT-Directive ElementHeader Element_SOAP static int graphics(GRAPHICS_FUNC_ARGS) +int Element_SOAP::graphics(GRAPHICS_FUNC_ARGS) + +{ + *pixel_mode |= EFFECT_LINES; + return 1; +} Element_SOAP::~Element_SOAP() {} |
