From 4a4dca7d39a9f310acae90b682791e64c502fda5 Mon Sep 17 00:00:00 2001 From: abramcumner Date: Fri, 18 Nov 2016 23:42:05 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D0=BB=20=D0=B4=D0=B5=D0=BA=D0=BE=D0=BC=D0=BF=D0=B8=D0=BB=D1=8F?= =?UTF-8?q?=D1=86=D0=B8=D1=8E=201114=20=D0=B1=D0=B8=D0=BB=D0=B4=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sources/xray_re/xr_level.cxx | 2 +- sources/xray_re/xr_level_visuals.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sources/xray_re/xr_level.cxx b/sources/xray_re/xr_level.cxx index a6fec38f..54a17299 100644 --- a/sources/xray_re/xr_level.cxx +++ b/sources/xray_re/xr_level.cxx @@ -93,12 +93,12 @@ bool xr_level::load(const char* game_data_path, const char* level_path) m_xrlc_quality = r->r_u16(); switch (xrlc_version) { case XRLC_VERSION_5: + case XRLC_VERSION_8: { char buf[124]; r->r_cseq(sizeof(buf), buf); } // fall through - case XRLC_VERSION_8: case XRLC_VERSION_9: case XRLC_VERSION_10: case XRLC_VERSION_11: diff --git a/sources/xray_re/xr_level_visuals.cxx b/sources/xray_re/xr_level_visuals.cxx index 359cf513..4fd00d92 100644 --- a/sources/xray_re/xr_level_visuals.cxx +++ b/sources/xray_re/xr_level_visuals.cxx @@ -76,7 +76,7 @@ void xr_level_visuals::load(uint32_t xrlc_version, xr_reader& r, const xr_level_ { xr_reader* s = 0; - if (xrlc_version <= XRLC_VERSION_8) + if (xrlc_version < XRLC_VERSION_8) s = r.open_chunk(FSL5_VISUALS); else s = r.open_chunk(FSL8_VISUALS);