Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wolf3d
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PocketInsanity
wolf3d
Commits
a917f0d3
Commit
a917f0d3
authored
20 years ago
by
Steven Fuller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanups.
parent
b8217360
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
22 additions
and
21 deletions
+22
-21
Makefile
src/Makefile
+1
-1
id_vh.c
src/id_vh.c
+1
-1
vi_sdl.c
src/vi_sdl.c
+1
-1
wl_agent.c
src/wl_agent.c
+2
-2
wl_menu.c
src/wl_menu.c
+17
-12
wl_menu.h
src/wl_menu.h
+0
-4
No files found.
src/Makefile
View file @
a917f0d3
...
...
@@ -4,7 +4,7 @@ CC = gcc
#CFLAGS = -g -Wall
CFLAGS
=
-g
-O2
-Wall
#CFLAGS = -Wall -O6 -fomit-frame-pointer -ffast-math -funroll-loops -march=pentiumpro
#CFLAGS = -g -Wall -
pedantic -std=gnu
99
#CFLAGS = -g -Wall -
W -pedantic -std=c
99
#CFLAGS = -Os -Wall -pedantic
#CFLAGS = -Os -Wall -fomit-frame-pointer -ffast-math -march=pentiumpro
#CFLAGS=-O3 -xiMK -tpp6 -c99 -wp_ipo -g
...
...
This diff is collapsed.
Click to expand it.
src/id_vh.c
View file @
a917f0d3
...
...
@@ -302,7 +302,7 @@ void VL_Hlin(unsigned x, unsigned y, unsigned width, unsigned color)
}
*/
int
w
;
unsigned
int
w
;
for
(
w
=
0
;
w
<
width
;
w
++
)
VL_Plot
(
x
+
w
,
y
,
color
);
...
...
This diff is collapsed.
Click to expand it.
src/vi_sdl.c
View file @
a917f0d3
...
...
@@ -53,7 +53,7 @@ void Quit(const char *error)
void
VL_WaitVBL
(
int
vbls
)
{
long
last
=
get_TimeCount
()
+
vbls
;
unsigned
long
last
=
get_TimeCount
()
+
vbls
;
while
(
last
>
get_TimeCount
())
;
}
...
...
This diff is collapsed.
Click to expand it.
src/wl_agent.c
View file @
a917f0d3
...
...
@@ -41,10 +41,10 @@ objtype *LastAttacker;
*/
struct
atkinf
st
atic
const
st
ruct
atkinf
{
signed
char
tics
,
attack
,
frame
;
// attack is 1 for gun, 2 for knife
}
static
const
attackinfo
[
4
][
14
]
=
}
attackinfo
[
4
][
14
]
=
{
{
{
6
,
0
,
1
},{
6
,
2
,
2
},{
6
,
0
,
3
},{
6
,
-
1
,
4
}
},
{
{
6
,
0
,
1
},{
6
,
1
,
2
},{
6
,
0
,
3
},{
6
,
-
1
,
4
}
},
...
...
This diff is collapsed.
Click to expand it.
src/wl_menu.c
View file @
a917f0d3
...
...
@@ -9,6 +9,9 @@
//
// PRIVATE PROTOTYPES
//
enum
{
MOUSE
,
JOYSTICK
,
KEYBOARDBTNS
,
KEYBOARDMOVE
};
// FOR INPUT TYPES
void
CP_ReadThis
();
#ifdef UPLOAD
...
...
@@ -153,8 +156,8 @@ static const int color_norml[] = { DEACTIVE, TEXTCOLOR, READCOLOR, 0x6b };
static
int
EpisodeSelect
[
6
]
=
{
1
};
#endif
int
SaveGamesAvail
[
10
],
StartGame
,
SoundStatus
=
1
,
pickquick
;
char
SaveGameNames
[
10
][
32
],
SaveName
[
13
]
=
"savegam?."
;
static
int
SaveGamesAvail
[
10
],
StartGame
,
SoundStatus
=
1
,
pickquick
;
static
char
SaveGameNames
[
10
][
32
],
SaveName
[
13
]
=
"savegam?."
;
////////////////////////////////////////////////////////////////////
...
...
@@ -216,13 +219,6 @@ static const char
"?"
,
"?"
,
"?"
,
"?"
,
"?"
,
"?"
,
"?"
,
"?"
,
"?"
,
"?"
,
"?"
,
"?"
,
"?"
,
"?"
,
"?"
,
"?"
,
"?"
,
"?"
,
"?"
,
"?"
,
"?"
,
"?"
,
"?"
,
"?"
,
"?"
,
"?"
,
"?"
,
"?"
,
"?"
,
"?"
,
"?"
,
"?"
},
// DEBUG - consolidate these
ExtScanCodes
[]
=
// Scan codes with >1 char names
{
1
,
0xe
,
0xf
,
0x1d
,
sc_LShift
,
0x39
,
0x3a
,
0x3b
,
0x3c
,
0x3d
,
0x3e
,
0x3f
,
0x40
,
0x41
,
0x42
,
0x43
,
0x44
,
0x57
,
0x59
,
0x46
,
0x1c
,
sc_RShift
,
0x37
,
0x38
,
sc_Home
,
sc_PgUp
,
sc_End
,
sc_PgDn
,
sc_Insert
,
sc_Delete
,
0x45
,
sc_UpArrow
,
sc_DownArrow
,
sc_LeftArrow
,
sc_RightArrow
,
0x00
},
*
ExtScanNames
[]
=
// Names corresponding to ExtScanCodes
{
"Esc"
,
"BkSp"
,
"Tab"
,
"Ctrl"
,
"LShft"
,
"Space"
,
"CapsLk"
,
"F1"
,
"F2"
,
"F3"
,
"F4"
,
...
...
@@ -231,12 +227,21 @@ static const char
"Down"
,
"Left"
,
"Right"
,
""
};
static
const
ScanCode
ExtScanCodes
[]
=
// Scan codes with >1 char names
{
1
,
0xe
,
0xf
,
0x1d
,
sc_LShift
,
0x39
,
0x3a
,
0x3b
,
0x3c
,
0x3d
,
0x3e
,
0x3f
,
0x40
,
0x41
,
0x42
,
0x43
,
0x44
,
0x57
,
0x59
,
0x46
,
0x1c
,
sc_RShift
,
0x37
,
0x38
,
sc_Home
,
sc_PgUp
,
sc_End
,
sc_PgDn
,
sc_Insert
,
sc_Delete
,
0x45
,
sc_UpArrow
,
sc_DownArrow
,
sc_LeftArrow
,
sc_RightArrow
,
0x00
};
const
char
*
IN_GetScanName
(
ScanCode
scan
)
{
char
**
p
;
ScanCode
*
s
;
c
onst
c
har
**
p
;
const
ScanCode
*
s
;
for
(
s
=
(
ScanCode
*
)
ExtScanCodes
,
p
=
(
char
**
)
ExtScanNames
;
*
s
;
p
++
,
s
++
)
for
(
s
=
ExtScanCodes
,
p
=
ExtScanNames
;
*
s
;
p
++
,
s
++
)
if
(
*
s
==
scan
)
return
*
p
;
...
...
This diff is collapsed.
Click to expand it.
src/wl_menu.h
View file @
a917f0d3
...
...
@@ -189,10 +189,6 @@ void CheckForEpisodes(void);
//
// VARIABLES
//
extern
int
SaveGamesAvail
[
10
],
StartGame
,
SoundStatus
;
extern
char
SaveGameNames
[
10
][
32
],
SaveName
[
13
];
enum
{
MOUSE
,
JOYSTICK
,
KEYBOARDBTNS
,
KEYBOARDMOVE
};
// FOR INPUT TYPES
enum
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment