Skip to content

Commit

Permalink
Add migrations for FakeSpecial_ entries
Browse files Browse the repository at this point in the history
  • Loading branch information
dseguin committed Dec 24, 2021
1 parent 76eabb0 commit b0bc7d0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions data/json/overmap/overmap_special/overmap_special_migration.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,15 @@
"type": "overmap_special_migration",
"id": "bog",
"//": "Removed - no new id"
},
{
"type": "overmap_special_migration",
"id": "FakeSpecial_s_jewelry",
"new_id": "s_jewelry_shop"
},
{
"type": "overmap_special_migration",
"id": "FakeSpecial_s_bike_shop_1",
"new_id": "s_bike_shop_1"
}
]
2 changes: 1 addition & 1 deletion src/overmap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ void overmap_specials::check_consistency()
if( new_id.is_null() ) {
debugmsg( "Overmap special id %s has been removed or migrated to a different type." );
} else if( new_id != os.id ) {
debugmsg( "Overmap special id %s has been migrated. Use %s instead.", os.id.c_str(),
debugmsg( "Overmap special id %s has been migrated. Use %s instead.", os.id.c_str(),
new_id.c_str() );
}
}
Expand Down

0 comments on commit b0bc7d0

Please sign in to comment.