From 2e7e4cfd46898b01688dba3b2fbb44d543da0d62 Mon Sep 17 00:00:00 2001 From: def Date: Sat, 6 Dec 2014 00:56:08 +0100 Subject: [PATCH] Code piece to convert race stoppers to ddrace stoppers --- src/game/editor/io.cpp | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/src/game/editor/io.cpp b/src/game/editor/io.cpp index a4fc2070d..7a5d69190 100644 --- a/src/game/editor/io.cpp +++ b/src/game/editor/io.cpp @@ -824,6 +824,34 @@ int CEditorMap::Load(class IStorage *pStorage, const char *pFileName, int Storag pTiles->m_pTiles[i].m_Index += ENTITY_OFFSET; } } + + // Convert race stoppers to ddrace stoppers + /*if(pTiles->m_Game) + { + for(int i = 0; i < pTiles->m_Width*pTiles->m_Height; i++) + { + if(pTiles->m_pTiles[i].m_Index == 29) + { + pTiles->m_pTiles[i].m_Index = 60; + pTiles->m_pTiles[i].m_Flags = TILEFLAG_HFLIP|TILEFLAG_VFLIP|TILEFLAG_ROTATE; + } + else if(pTiles->m_pTiles[i].m_Index == 30) + { + pTiles->m_pTiles[i].m_Index = 60; + pTiles->m_pTiles[i].m_Flags = TILEFLAG_ROTATE; + } + else if(pTiles->m_pTiles[i].m_Index == 31) + { + pTiles->m_pTiles[i].m_Index = 60; + pTiles->m_pTiles[i].m_Flags = TILEFLAG_HFLIP|TILEFLAG_VFLIP; + } + else if(pTiles->m_pTiles[i].m_Index == 32) + { + pTiles->m_pTiles[i].m_Index = 60; + pTiles->m_pTiles[i].m_Flags = 0; + } + } + }*/ } DataFile.UnloadData(pTilemapItem->m_Data);