Skip to content

Commit

Permalink
fix level changer param serialization(CoP SDK glitch)
Browse files Browse the repository at this point in the history
  • Loading branch information
abramcumner committed Aug 24, 2016
1 parent f707231 commit c1c07da
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions sources/xray_re/xr_entity.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1682,7 +1682,9 @@ void cse_alife_level_changer::state_read(xr_packet& packet, uint16_t size)
} else {
packet.r_u16(m_next_graph_id);
packet.r_u32(m_next_node_id);
packet.r_vec3(m_next_position);
packet.r_float(m_next_position.x);
packet.r_float(m_next_position.y);
packet.r_float(m_next_position.z);
if (m_version > CSE_VERSION_0x35) {
packet.r_vec3(m_angles);
} else {
Expand All @@ -1702,7 +1704,9 @@ void cse_alife_level_changer::state_write(xr_packet& packet)
cse_alife_space_restrictor::state_write(packet);
packet.w_u16(m_next_graph_id);
packet.w_u32(m_next_node_id);
packet.w_vec3(m_next_position);
packet.w_float(m_next_position.x);
packet.w_float(m_next_position.y);
packet.w_float(m_next_position.z);
packet.w_vec3(m_angles);
packet.w_sz(m_level_to_change);
packet.w_sz(m_level_point_to_change);
Expand Down

0 comments on commit c1c07da

Please sign in to comment.