mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 17:01:51 +00:00
Mapster32: RCtrl+RAlt (+['] or [;]) selects sectors in 3D mode, by The Mechanic.
git-svn-id: https://svn.eduke32.com/eduke32@5339 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
0943cd0e3f
commit
1ea397d0b4
3 changed files with 24 additions and 1 deletions
|
@ -328,6 +328,7 @@ void update_highlight(void);
|
|||
void update_highlightsector(void);
|
||||
void reset_highlightsector(void);
|
||||
void reset_highlight(void);
|
||||
void handlesecthighlight1(int32_t i, int32_t sub, int32_t nograycheck);
|
||||
void ovh_whiteoutgrab(int32_t restoreredwalls);
|
||||
|
||||
int32_t inside_editor_curpos(int16_t sectnum);
|
||||
|
|
|
@ -2831,7 +2831,7 @@ void SetFirstWall(int32_t sectnum, int32_t wallnum, int32_t alsoynw)
|
|||
asksave = 1;
|
||||
}
|
||||
|
||||
static void handlesecthighlight1(int32_t i, int32_t sub, int32_t nograycheck)
|
||||
void handlesecthighlight1(int32_t i, int32_t sub, int32_t nograycheck)
|
||||
{
|
||||
int32_t j;
|
||||
|
||||
|
|
|
@ -4430,6 +4430,28 @@ static void Keys3d(void)
|
|||
|
||||
VM_OnEvent(EVENT_PREKEYS3D, -1);
|
||||
|
||||
if (keystatus[KEYSC_RALT] && keystatus[KEYSC_RCTRL] && AIMING_AT_CEILING_OR_FLOOR && searchsector >= 0)
|
||||
{
|
||||
keystatus[KEYSC_RALT] = 0;
|
||||
|
||||
if (highlightcnt >= 0)
|
||||
{
|
||||
message("WARNING: Cannot select sectors while sprites/walls selected");
|
||||
}
|
||||
else
|
||||
{
|
||||
const int32_t sub = keystatus[KEYSC_SEMI];
|
||||
const int32_t add = keystatus[KEYSC_QUOTE];
|
||||
|
||||
if (!add && !sub)
|
||||
reset_highlightsector();
|
||||
|
||||
handlesecthighlight1(searchsector, sub, 1);
|
||||
|
||||
message("%s sector %d", sub ? "De-selected" : "Selected", searchsector);
|
||||
}
|
||||
}
|
||||
|
||||
if (keystatus[KEYSC_QUOTE] && PRESSED_KEYSC(V)) // ' V
|
||||
{
|
||||
if (AIMING_AT_CEILING_OR_FLOOR)
|
||||
|
|
Loading…
Reference in a new issue