mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user