From 0b0c73647a32030ba059808aad406eae7cdc42d9 Mon Sep 17 00:00:00 2001 From: jacob1 Date: Sat, 12 Mar 2016 13:39:54 -0500 Subject: [PATCH] don't remder AMTR as a gas --- src/simulation/elements/AMTR.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/simulation/elements/AMTR.cpp b/src/simulation/elements/AMTR.cpp index 814042ea7..8589ac419 100644 --- a/src/simulation/elements/AMTR.cpp +++ b/src/simulation/elements/AMTR.cpp @@ -42,6 +42,7 @@ Element_AMTR::Element_AMTR() HighTemperatureTransition = NT; Update = &Element_AMTR::update; + Graphics = &Element_AMTR::graphics; } //#TPT-Directive ElementHeader Element_AMTR static int update(UPDATE_FUNC_ARGS) @@ -75,4 +76,12 @@ int Element_AMTR::update(UPDATE_FUNC_ARGS) } +//#TPT-Directive ElementHeader Element_AMTR static int graphics(GRAPHICS_FUNC_ARGS) +int Element_AMTR::graphics(GRAPHICS_FUNC_ARGS) +{ + // don't render AMTR as a gas + // this function just overrides the default graphics + return 1; +} + Element_AMTR::~Element_AMTR() {}