Merged from revision: 7676

Features (by anv)
- new Ja2_Options.ini setting - HIDE_EXPLORED_ROOM_ROOF_STRUCTURES (e.g. sandbags) at ground level view
- Hold CTRL hotkey in mapeditor to place any object on roof

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7677 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Wanne
2014-12-06 13:37:25 +00:00
parent bb264d6815
commit eaa153b310
7 changed files with 104 additions and 6 deletions
+11 -1
View File
@@ -58,7 +58,8 @@ void GameInitEditorBuildingInfo()
//BEGINNING OF BUILDING UTILITY FUNCTIONS
void UpdateRoofsView()//dnl ch80 011213
{
INT32 x, cnt;
INT32 x, cnt, tiletypecnt;
/* // hide roof structures only
UINT16 usType[12] = {FIRSTROOF, SECONDROOF, THIRDROOF, FOURTHROOF, FIRSTSLANTROOF, SECONDSLANTROOF, FIRSTONROOF, SECONDONROOF, FIRSTWALL, SECONDWALL, THIRDWALL, FOURTHWALL};
for(cnt=0; cnt<WORLD_MAX; cnt++)
{
@@ -66,6 +67,15 @@ void UpdateRoofsView()//dnl ch80 011213
while(x--)
HideStructOfGivenType(cnt, usType[x], !fBuildingShowRoofs);
}
*/
// Buggler: hide all tiles on roof
x = FIRSTSWITCHES + 1;
for(cnt=0; cnt<WORLD_MAX; cnt++)
{
for(tiletypecnt=0; tiletypecnt<x; tiletypecnt++)
HideStructOfGivenType(cnt, tiletypecnt, !fBuildingShowRoofs);
}
gfRenderWorld = TRUE;
}