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
4c8935b5
Commit
4c8935b5
authored
May 16, 2000
by
Steven Fuller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
I forget.. (has been several days since last checkin; nothing signifigant)
parent
2d34f001
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
23 additions
and
8 deletions
+23
-8
Makefile
src/Makefile
+1
-0
TODO
src/TODO
+5
-0
gfxsave.c
src/gfxsave.c
+2
-2
id_ca.c
src/id_ca.c
+2
-2
id_heads.h
src/id_heads.h
+10
-1
vi_glx.c
src/vi_glx.c
+1
-1
vi_svga.c
src/vi_svga.c
+1
-1
vi_xlib.c
src/vi_xlib.c
+1
-1
No files found.
src/Makefile
View file @
4c8935b5
CC
=
gcc
#CC = g++
#CFLAGS = -Wall -O6 -fomit-frame-pointer -ffast-math -funroll-loops -mpentiumpro -mcpu=pentiumpro -march=pentiumpro
#CFLAGS = -g -Wall
...
...
src/TODO
View file @
4c8935b5
...
...
@@ -83,3 +83,8 @@ draw loop.. start by cp wl_draw.c vi_ogl.c and just take out the actual
drawing bits and replace with opengl.
* rename visable to visible
* fix up windows port
* create 'sound channels' with priority.. ie a door can only make one sound
at a time
* beos is c++ (and uses gcc as a compiler i think) but wolf3d will need many
cleanups for c++
either that or use extern "C" { ... } in the header files
src/gfxsave.c
View file @
4c8935b5
...
...
@@ -73,7 +73,7 @@ void SavePCX256ToFile(unsigned char *buf, int width, int height, unsigned char *
}
#endif
fp
=
fopen
(
name
,
"w"
);
fp
=
fopen
(
name
,
"w
b
"
);
fwrite
(
&
ph
,
sizeof
(
ph
),
1
,
fp
);
fwrite
(
dat
,
1
,
z
,
fp
);
fputc
(
12
,
fp
);
...
...
@@ -115,7 +115,7 @@ void SavePCXRGBToFile(unsigned char *buf, int width, int height, char *name)
}
}
fp
=
fopen
(
name
,
"w"
);
fp
=
fopen
(
name
,
"w
b
"
);
fwrite
(
&
ph
,
sizeof
(
ph
),
1
,
fp
);
fwrite
(
dat
,
1
,
width
*
height
*
2
*
3
,
fp
);
fclose
(
fp
);
...
...
src/id_ca.c
View file @
4c8935b5
...
...
@@ -179,9 +179,9 @@ boolean CA_ReadFile(char *filename, memptr *ptr)
if
((
handle
=
open
(
filename
,
O_RDONLY
|
O_BINARY
,
S_IREAD
))
==
-
1
)
return
false
;
size
=
filelength
(
handle
);
if
(
!
CA_FarRead
(
handle
,
*
ptr
,
size
))
{
if
(
!
CA_FarRead
(
handle
,
*
ptr
,
size
))
{
close
(
handle
);
return
false
;
}
...
...
src/id_heads.h
View file @
4c8935b5
...
...
@@ -13,9 +13,13 @@
#include <io.h>
#include <dos.h>
#ifdef __cplusplus
typedef
bool
boolean
;
#else
#define boolean BOOLEAN
#define false FALSE
#define true TRUE
#endif
#define PACKED
#pragma pack(1)
/* TODO: this unfortunately packs every struct... */
...
...
@@ -34,7 +38,12 @@
#define LONGLONG long long
#define O_BINARY 0
typedef
enum
{
false
,
true
}
boolean
;
#ifdef __cplusplus
typedef
bool
boolean
;
#else
typedef
enum
{
false
,
true
}
boolean
;
#endif
#endif
...
...
src/vi_glx.c
View file @
4c8935b5
...
...
@@ -63,7 +63,7 @@ void Quit(char *error)
}
if
(
error
&&
*
error
)
{
fprintf
(
stderr
,
"Quit: %s"
,
error
);
fprintf
(
stderr
,
"Quit: %s
\n
"
,
error
);
exit
(
EXIT_FAILURE
);
}
exit
(
EXIT_SUCCESS
);
...
...
src/vi_svga.c
View file @
4c8935b5
...
...
@@ -36,7 +36,7 @@ void Quit(char *error)
}
if
(
error
&&
*
error
)
{
fprintf
(
stderr
,
"Quit: %s"
,
error
);
fprintf
(
stderr
,
"Quit: %s
\n
"
,
error
);
exit
(
EXIT_FAILURE
);
}
exit
(
EXIT_SUCCESS
);
...
...
src/vi_xlib.c
View file @
4c8935b5
...
...
@@ -76,7 +76,7 @@ void Quit(char *error)
}
if
(
error
&&
*
error
)
{
fprintf
(
stderr
,
"Quit: %s"
,
error
);
fprintf
(
stderr
,
"Quit: %s
\n
"
,
error
);
exit
(
EXIT_FAILURE
);
}
exit
(
EXIT_SUCCESS
);
...
...
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