Merge branch 'develop' of https://github.com/dfhack/dfhack into develop

develop
lethosor 2015-12-18 18:42:39 -05:00
commit e7d8f9b2b3
3 changed files with 3 additions and 3 deletions

@ -1136,7 +1136,7 @@ command_result autohauler (color_ostream &out, std::vector <std::string> & param
out << "All labors reset." << endl;
return CR_OK;
}
else if (parameters.size() == 1 && parameters[0] == "list" || parameters[0] == "status")
else if (parameters.size() == 1 && (parameters[0] == "list" || parameters[0] == "status"))
{
if (!enable_autohauler)
{

@ -1511,7 +1511,7 @@ command_result autolabor (color_ostream &out, std::vector <std::string> & parame
out << "All labors reset." << endl;
return CR_OK;
}
else if (parameters.size() == 1 && parameters[0] == "list" || parameters[0] == "status")
else if (parameters.size() == 1 && (parameters[0] == "list" || parameters[0] == "status"))
{
if (!enable_autolabor)
{

@ -724,7 +724,7 @@ void lightingEngineViewscreen::doOcupancyAndLights()
for(int i=0;i<block->flows.size();i++)
{
df::flow_info* f=block->flows[i];
if(f && f->density>0 && f->type==df::flow_type::Dragonfire || f->type==df::flow_type::Fire)
if(f && f->density>0 && (f->type==df::flow_type::Dragonfire || f->type==df::flow_type::Fire))
{
df::coord2d pos=f->pos;
pos=worldToViewportCoord(pos,vp,window2d);