Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Main
Synchronet
Commits
9874bc24
Commit
9874bc24
authored
22 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
Fixed od_get_key(bWait=FALSE) - bug reported by Evan Elias.
parent
1b393810
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/odoors/ODCore.c
+13
-12
13 additions, 12 deletions
src/odoors/ODCore.c
src/odoors/ODoors62.dll
+0
-0
0 additions, 0 deletions
src/odoors/ODoors62.dll
with
13 additions
and
12 deletions
src/odoors/ODCore.c
+
13
−
12
View file @
9874bc24
...
...
@@ -66,6 +66,7 @@
* Mar 21, 1996 6.10 BP Added od_control_get().
* Sep 01, 1996 6.10 BP Update output area on od_set_per...().
* Oct 19, 2001 6.20 RS od_get_key now ignores linefeeds.
* Mar 14, 2002 6.22 RS Fixed od_get_key(bWait=FALSE)
*/
#define BUILDING_OPENDOORS
...
...
@@ -423,20 +424,20 @@ ODAPIDEF char ODCALL od_get_key(BOOL bWait)
/* Call the OpenDoors kernel. */
CALL_KERNEL_IF_NEEDED
();
/* If we aren't supposed to wait for input, then check whether any */
/* input is waiting in the input queue, and if not return right away */
/* without any data. */
if
(
!
bWait
)
{
if
(
!
ODInQueueWaiting
(
hODInputQueue
))
{
OD_API_EXIT
();
return
(
0
);
}
}
do
{
/* If we aren't supposed to wait for input, then check whether any */
/* input is waiting in the input queue, and if not return right away */
/* without any data. */
if
(
!
bWait
)
{
if
(
!
ODInQueueWaiting
(
hODInputQueue
))
{
OD_API_EXIT
();
return
(
0
);
}
}
/* Obtain the next character from the input queue. If we get to this */
/* point and there is no data waiting in the input queue, then the */
/* ODInQueueGetNextEvent() function will block until a character */
...
...
This diff is collapsed.
Click to expand it.
src/odoors/ODoors62.dll
+
0
−
0
View file @
9874bc24
No preview for this file type
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