diff --git a/src/simulation/elements/MERC.cpp b/src/simulation/elements/MERC.cpp index 1fec32a99..655a8b9b1 100644 --- a/src/simulation/elements/MERC.cpp +++ b/src/simulation/elements/MERC.cpp @@ -80,13 +80,14 @@ int Element_MERC::update(UPDATE_FUNC_ARGS) r = pmap[y+ry][x+rx]; if (parts[i].tmp<=maxtmp) continue; - if ((!r)&&parts[i].tmp>=1)//if nothing then create deut + if ((!r)&&parts[i].tmp>=1)//if nothing then create MERC { np = sim->create_part(-1,x+rx,y+ry,PT_MERC); if (np<0) continue; parts[i].tmp--; parts[np].temp = parts[i].temp; parts[np].tmp = 0; + parts[np].dcolour = parts[i].dcolour; } } for ( trade = 0; trade<4; trade ++) @@ -118,4 +119,4 @@ int Element_MERC::update(UPDATE_FUNC_ARGS) } -Element_MERC::~Element_MERC() {} \ No newline at end of file +Element_MERC::~Element_MERC() {}