Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
SRB2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Kays Ishaq
SRB2
Commits
e245354c
Commit
e245354c
authored
5 years ago
by
James R.
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'origin/master' into next
parents
b2168aba
753829c8
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/console.c
+10
-1
10 additions, 1 deletion
src/console.c
src/d_main.c
+8
-7
8 additions, 7 deletions
src/d_main.c
with
18 additions
and
8 deletions
src/console.c
+
10
−
1
View file @
e245354c
...
@@ -613,6 +613,15 @@ void CON_Ticker(void)
...
@@ -613,6 +613,15 @@ void CON_Ticker(void)
con_tick
++
;
con_tick
++
;
con_tick
&=
7
;
con_tick
&=
7
;
// if the menu is open then close the console.
if
(
menuactive
&&
con_destlines
)
{
consoletoggle
=
false
;
con_destlines
=
0
;
CON_ClearHUD
();
I_UpdateMouseGrab
();
}
// console key was pushed
// console key was pushed
if
(
consoletoggle
)
if
(
consoletoggle
)
{
{
...
@@ -784,7 +793,7 @@ boolean CON_Responder(event_t *ev)
...
@@ -784,7 +793,7 @@ boolean CON_Responder(event_t *ev)
// check other keys only if console prompt is active
// check other keys only if console prompt is active
if
(
!
consoleready
&&
key
<
NUMINPUTS
)
// metzgermeister: boundary check!!
if
(
!
consoleready
&&
key
<
NUMINPUTS
)
// metzgermeister: boundary check!!
{
{
if
(
!
menuactive
&&
bindtable
[
key
])
if
(
bindtable
[
key
])
{
{
COM_BufAddText
(
bindtable
[
key
]);
COM_BufAddText
(
bindtable
[
key
]);
COM_BufAddText
(
"
\n
"
);
COM_BufAddText
(
"
\n
"
);
...
...
This diff is collapsed.
Click to expand it.
src/d_main.c
+
8
−
7
View file @
e245354c
...
@@ -188,14 +188,14 @@ void D_ProcessEvents(void)
...
@@ -188,14 +188,14 @@ void D_ProcessEvents(void)
continue
;
continue
;
}
}
// console input
if
(
CON_Responder
(
ev
))
continue
;
// ate the event
// Menu input
// Menu input
if
(
M_Responder
(
ev
))
if
(
M_Responder
(
ev
))
continue
;
// menu ate the event
continue
;
// menu ate the event
// console input
if
(
CON_Responder
(
ev
))
continue
;
// ate the event
G_Responder
(
ev
);
G_Responder
(
ev
);
}
}
}
}
...
@@ -502,12 +502,13 @@ static void D_Display(void)
...
@@ -502,12 +502,13 @@ static void D_Display(void)
// vid size change is now finished if it was on...
// vid size change is now finished if it was on...
vid
.
recalc
=
0
;
vid
.
recalc
=
0
;
M_Drawer
();
// menu is drawn even on top of everything
// FIXME: draw either console or menu, not the two
// focus lost moved to M_Drawer
if
(
gamestate
!=
GS_TIMEATTACK
)
if
(
gamestate
!=
GS_TIMEATTACK
)
CON_Drawer
();
CON_Drawer
();
M_Drawer
();
// menu is drawn even on top of everything
// focus lost moved to M_Drawer
//
//
// wipe update
// wipe update
//
//
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment