//#TPT-Directive ElementHeader Element_HTER static int update(UPDATE_FUNC_ARGS)
int Element_HTER::update(UPDATE_FUNC_ARGS) {
int r,rx,ry;
for (rx=-2; rx<3; rx++){<br/> for (ry=-2; ry<3; ry++){<br/> if (BOUNDS_CHECK)
{
r=pmap[x+rx][y+ry];
if(!r)
continue;
if((r&0xFF)!=PT_HTER && parts[r>>8].temp * 2.2f < MAX_TEMP){
parts[r>>8].temp *= 2.2f;
}
else {parts[r>>8].temp = MAX_TEMP;}
}}}
return 0;
}
Element_HTER::~Element_HTER() {}
they are in.
here
this code
menu_section msections[] = //doshow does not do anything currently.
{
{"\xC1", "Walls", 0, 1},
{"\xC2", "Electronics", 0, 1},
{"\xD6", "Powered Materials", 0, 1},
{"\x99", "Sensors", 0, 1},
{"\xE2", "Force", 0, 1},
{"\xC3", "Explosives", 0, 1},
{"\xC5", "Gasses", 0, 1},
{"\xC4", "Liquids", 0, 1},
{"\xD0", "Powders", 0, 1},
{"\xD1", "Solids", 0, 1},
{"\xC6", "Radioactive", 0, 1},
{"\xCC", "Special", 0, 1},
{"\xD2", "Game Of Life", 0, 1},
{"\xD7", "Tools", 0, 1},
{"\xE4", "Decoration tools", 0, 1},
{"\xC8", "Cracker", 0, 0},
{"\xC8", "Cracker!", 0, 0},
};
//#TPT-Directive ElementHeader Element_LTHM static int update(UPDATE_FUNC_ARGS)
int Element_LTHM::update(UPDATE_FUNC_ARGS)
{
int r,rx,ry;
for(rx=-1;rx<2;rx++){<br/> for(ry=-1;ry<2;ry++){<br/> if(BOUNDS_CHECK)
{
r=pmap[y+ry][x+rx];
if(!r)
continue;
if((r&0xFF)==PT_SPRK && parts[r>>8].ctype==PT_PSCN)
{
parts[i].tmp++;
}
if((r&0xFF)==PT_NSCN && parts[i].tmp > 0)
{
parts[i].tmp--;
parts[r>>8].ctype==PT_NSCN;
(r&0xFF)==PT_SPRK;
}
}}}return 0;
}
Element_LTHM::~Element_LTHM() {}
if((r&0xFF)==PT_LTHM && parts[r>>8].tmp < parts[i].tmp)
{
parts[r>>8].tmp = parts[i].tmp;
}