Skip to content

Commit 44180c3

Browse files
Merge pull request CleverRaven#78385 from CleverRaven/build-fixies
Build fixies
2 parents c5cf777 + 163fe69 commit 44180c3

File tree

5 files changed

+12
-13
lines changed

5 files changed

+12
-13
lines changed

src/scores_ui.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ void scores_ui_impl::init_data()
166166
const std::string &symbol = m.sym;
167167
nc_color color = m.color;
168168
const std::string &name = m.nname();
169-
monster_kills_data.emplace_back( std::make_tuple( num_kills, symbol, color, name ) );
169+
monster_kills_data.emplace_back( num_kills, symbol, color, name );
170170
}
171171
auto sort_by_count_then_name = []( auto & a, auto & b ) {
172172
return

src/talker.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,6 @@ class talker: virtual public const_talker
670670
virtual computer *get_computer() {
671671
return nullptr;
672672
}
673-
virtual void set_pos( tripoint ) {}
674673
virtual void set_pos( tripoint_bub_ms ) {}
675674
virtual void update_missions( const std::vector<mission *> & ) {}
676675
virtual void set_str_max( int ) {}

src/talker_character.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,6 @@ tripoint_abs_omt talker_character_const::global_omt_location() const
8282
return me_chr_const->global_omt_location();
8383
}
8484

85-
void talker_character::set_pos( tripoint new_pos )
86-
{
87-
me_chr->setpos( new_pos );
88-
}
89-
9085
int talker_character_const::get_cur_hp( const bodypart_id &bp ) const
9186
{
9287
return me_chr_const->get_hp( bp );
@@ -135,6 +130,11 @@ dealt_damage_instance talker_character_const::deal_damage( Creature *source, bod
135130
return source->deal_damage( source, bp, dam );
136131
}
137132

133+
void talker_character::set_pos( tripoint_bub_ms new_pos )
134+
{
135+
me_chr->setpos( new_pos );
136+
}
137+
138138
void talker_character::set_str_max( int value )
139139
{
140140
me_chr->str_max = value;

src/talker_character.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ class talker_character: virtual public talker
245245
return me_chr;
246246
}
247247

248-
void set_pos( tripoint new_pos ) override;
248+
void set_pos( tripoint_bub_ms new_pos ) override;
249249

250250
// stats, skills, traits, bionics, and magic
251251
void set_str_max( int value ) override;

src/worldfactory.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ bool WORLD::save( const bool is_conversion ) const
307307
}
308308

309309
if( !is_conversion ) {
310-
const auto savefile = folder_path() / PATH_INFO::worldoptions();
310+
const cata_path savefile = folder_path() / PATH_INFO::worldoptions();
311311
const bool saved = write_to_file( savefile, [&]( std::ostream & fout ) {
312312
JsonOut jout( fout );
313313

@@ -423,7 +423,7 @@ void worldfactory::init()
423423
if( newworld->save( true ) ) {
424424
const cata_path origin_path = old_world.folder_path();
425425
// move files from origin_path into new world path
426-
for( auto &origin_file : get_files_from_path( ".", origin_path, false ) ) {
426+
for( cata_path &origin_file : get_files_from_path( ".", origin_path, false ) ) {
427427
std::string filename = origin_file.get_relative_path().filename().generic_u8string();
428428

429429
if( rename_file( origin_file, ( newworld->folder_path() / filename ) ) ) {
@@ -2153,15 +2153,15 @@ void worldfactory::delete_world( const std::string &worldname, const bool delete
21532153
auto end = std::remove_if( file_paths.begin(), file_paths.end(), isForbidden );
21542154
file_paths.erase( end, file_paths.end() );
21552155

2156-
for( auto &file_path : file_paths ) {
2156+
for( cata_path &file_path : file_paths ) {
21572157
fs::path folder_path = file_path.get_unrelative_path().parent_path();
2158-
while( folder_path.filename() != worldname ) {
2158+
while( folder_path.filename() != fs::u8path( worldname ) ) {
21592159
directory_paths.insert( folder_path );
21602160
folder_path = folder_path.parent_path();
21612161
}
21622162
}
21632163

2164-
for( auto &file : file_paths ) {
2164+
for( cata_path &file : file_paths ) {
21652165
remove_file( file );
21662166
}
21672167

0 commit comments

Comments
 (0)