Skip to content

Commit

Permalink
less compactable
Browse files Browse the repository at this point in the history
  • Loading branch information
schombert committed Nov 29, 2024
1 parent 8b309d1 commit 28fa9b3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions src/gamestate/dcon_generated.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2749,7 +2749,7 @@ object {
}
relationship{
name{ war_participant }
storage_type{ compactable }
storage_type{ erasable }
size{ 3000 }
tag{ save }

Expand Down Expand Up @@ -4318,7 +4318,7 @@ relationship{

object {
name { factory }
storage_type{ compactable }
storage_type{ erasable }
size{ 10000 }
tag{ save }

Expand Down Expand Up @@ -4451,7 +4451,7 @@ relationship{

relationship{
name{ province_land_construction }
storage_type{ compactable }
storage_type{ erasable }
size{ 16000 }
tag{ save }

Expand Down Expand Up @@ -4487,7 +4487,7 @@ relationship{

relationship{
name{ province_naval_construction }
storage_type{ compactable }
storage_type{ erasable }
size{ 16000 }
tag{ save }

Expand Down Expand Up @@ -4523,7 +4523,7 @@ relationship{

relationship{
name{ province_building_construction }
storage_type{ compactable }
storage_type{ erasable }
size{ 16000 }
tag{ save }

Expand Down Expand Up @@ -4559,7 +4559,7 @@ relationship{

relationship{
name{ state_building_construction }
storage_type{ compactable }
storage_type{ erasable }
size{ 16000 }
tag{ save }

Expand Down Expand Up @@ -5293,7 +5293,7 @@ relationship{
}
link{
object{mp_player}
name{player}
name{mp_player}
type{unique}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/gamestate/serialization.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ inline uint8_t const* deserialize(uint8_t const* ptr_in, ankerl::unordered_dense
return ptr_in + sizeof(uint32_t) + sizeof(vec.values()[0]) * length;
}

constexpr inline uint32_t save_file_version = 42;
constexpr inline uint32_t save_file_version = 43;
constexpr inline uint32_t scenario_file_version = 136 + save_file_version;

struct scenario_header {
Expand Down
2 changes: 1 addition & 1 deletion src/network/network.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ dcon::mp_player_id find_mp_player(sys::state& state, sys::player_name name) {
}

dcon::mp_player_id find_country_player(sys::state& state, dcon::nation_id nation) {
return state.world.nation_get_player_from_player_nation(nation);
return state.world.nation_get_mp_player_from_player_nation(nation);
}

static dcon::nation_id get_player_nation(sys::state& state, sys::player_name name, client_data client) {
Expand Down

0 comments on commit 28fa9b3

Please sign in to comment.