diff options
| author | Choupom <andycootlapin@hotmail.fr> | 2010-11-29 20:33:38 +0100 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2010-12-11 21:57:43 +0100 |
| commit | eb569e60bd98bc044b9cda8b11ffbe25b30382a2 (patch) | |
| tree | e877d1d9d33b63740379d42b237eaa2eecd0d2e4 | |
| parent | cdd8184f89bce012847d0afc9ea48c29540f135b (diff) | |
| download | zcatch-eb569e60bd98bc044b9cda8b11ffbe25b30382a2.tar.gz zcatch-eb569e60bd98bc044b9cda8b11ffbe25b30382a2.zip | |
fixed clipping on old maps (fixes #325)
| -rw-r--r-- | src/game/layers.cpp | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/game/layers.cpp b/src/game/layers.cpp index c6ab0553..aafd3dd4 100644 --- a/src/game/layers.cpp +++ b/src/game/layers.cpp @@ -39,11 +39,15 @@ void CLayers::Init(class IKernel *pKernel) m_pGameGroup->m_OffsetY = 0; m_pGameGroup->m_ParallaxX = 100; m_pGameGroup->m_ParallaxY = 100; - m_pGameGroup->m_UseClipping = 0; - m_pGameGroup->m_ClipX = 0; - m_pGameGroup->m_ClipY = 0; - m_pGameGroup->m_ClipW = 0; - m_pGameGroup->m_ClipH = 0; + + if(m_pGameGroup->m_Version >= 2) + { + m_pGameGroup->m_UseClipping = 0; + m_pGameGroup->m_ClipX = 0; + m_pGameGroup->m_ClipY = 0; + m_pGameGroup->m_ClipW = 0; + m_pGameGroup->m_ClipH = 0; + } break; } |