Skip to content

Commit

Permalink
fix GitHub errors: unused & 'point' from named constant
Browse files Browse the repository at this point in the history
  • Loading branch information
Brambor committed Sep 2, 2024
1 parent 9c09701 commit 5bde4c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/npctalk_funcs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1285,8 +1285,9 @@ void talk_function::distribute_food_auto( npc &p )
zone_manager &mgr = zone_manager::get_manager();
const tripoint_abs_ms &npc_abs_loc = p.get_location();
// 3x3 square with NPC in the center, includes NPC's tile and all adjacent ones, for overflow
const tripoint top_left = npc_abs_loc.raw() + point{-1, -1}; // Awful hack, zones want the raw value
const tripoint bottom_right = npc_abs_loc.raw() + point{1, 1}; // Awful hack, zones want the raw value
// TODO: fix point types; Awful hack, zones want the raw value
const tripoint top_left = npc_abs_loc.raw() + point_north_west;
const tripoint bottom_right = npc_abs_loc.raw() + point_south_east;
std::string zone_name = "ERROR IF YOU SEE THIS (dummy zone talk_function::distribute_food_auto)";
const faction_id &fac_id = p.get_fac_id();
mgr.add( zone_name, zone_type_CAMP_FOOD, fac_id, false, true, top_left, bottom_right );
Expand Down
1 change: 0 additions & 1 deletion src/overmap_ui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@

class character_id;

static const activity_id ACT_AUTODRIVE( "ACT_AUTODRIVE" );
static const activity_id ACT_TRAVELLING( "ACT_TRAVELLING" );

static const mongroup_id GROUP_FOREST( "GROUP_FOREST" );
Expand Down

0 comments on commit 5bde4c6

Please sign in to comment.