Skip to content

Commit

Permalink
fixed compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
epsilon-phase authored and kevingranade committed Sep 25, 2015
1 parent 6a174df commit 7b0df6d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/vehicle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3837,15 +3837,16 @@ void vehicle::operate_planter(){
std::vector<int> planters = all_parts_with_feature("PLANTER");
for( int planter_id : planters ){
const tripoint& loc = global_pos3()
+ parts[planter_id].precalc[0], 1;
+ parts[planter_id].precalc[0];
vehicle_stack v = get_items(planter_id);
for(auto i = v.begin(); i != v.end(); i++ ){
if(i->is_seed()){
if( g->m.ter(loc) != t_dirtmound && !parts[planter_id].has_flag( "ADVANCED" ))) {//If it is an "advanced model" then it will avoid damaging itself or becoming damaged. It's a real feature.
if( g->m.ter(loc) != t_dirtmound
&& part_flag(planter_id, "ADVANCED" ) ) {//If it is an "advanced model" then it will avoid damaging itself or becoming damaged. It's a real feature.
break;//then don't put the item there.
}else if(g->m.ter(loc) == t_dirtmound ) {
g->m.furn_set(loc, f_plant_seed);
}else if( !g->m.has_flag("DIGGABLE") ) {//If it isn't diggable terrain, then it will most likely be damaged.
}else if( !g->m.has_flag( "DIGGABLE", loc ) ) {//If it isn't diggable terrain, then it will most likely be damaged.
damage(planter_id, rng(1,10), DT_BASH, false);
}
g->m.add_item(loc,*i);
Expand Down

0 comments on commit 7b0df6d

Please sign in to comment.