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
e123336b
Commit
e123336b
authored
Apr 23, 2000
by
Steven Fuller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed -fwritable-strings
parent
cd368182
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
34 additions
and
16 deletions
+34
-16
IDEAS
src/IDEAS
+6
-0
Makefile
src/Makefile
+2
-2
TODO
src/TODO
+9
-5
id_us.c
src/id_us.c
+16
-8
version.h
src/version.h
+1
-1
No files found.
src/IDEAS
View file @
e123336b
...
...
@@ -3,6 +3,12 @@
* Game able to cope at any virtual resolution in software mode. OpenGL
handles this transparently
* Audio support using OpenAL
- Problem is, that SDL and OpenAL would need pthread, which with SVGAlib is
a no-go... oh well.
* Add support for the Mac version, if possible
* Network support!
* Fully compile with no warnings/errors using -Wall -ansi -pedantic
* Port to: Linux/SVGAlib, Linux/X, Linux/OpenGL, DOS/Allegro, Win32/GDI,
Win32/DX, Win32/D3D, Win32/OpenGL, BeOS?, MacOS?
* Ease in using demos. Playing demos from files, recording to files, batch
playing, and so on.
src/Makefile
View file @
e123336b
CC
=
gcc
#CFLAGS = -Wall -O6 -fomit-frame-pointer -mpentiumpro -mcpu=pentiumpro -march=pentiumpro -DUSEVGA
CFLAGS
=
-g
-DUSEVGA
-fwritable-strings
CFLAGS
=
-g
-DUSEVGA
#CFLAGS = -Os -fwritable-strings
#CFLAGS = -g -Wall -DUSEVGA -DDEBUG
#CFLAGS = -g -DUSEVGA -DDEBUG
...
...
@@ -10,7 +10,7 @@ OBJS = objs.o misc.o id_ca.o id_in.o id_sd.o id_vl.o id_vh.o id_us.o \
wl_inter.o wl_menu.o wl_play.o wl_state.o wl_text.o wl_main.o
\
wl_debug.o
LFLAGS
=
-lm
-lvga
LFLAGS
=
-lm
-lvga
#LFLAGS = -lm -lvga ElectricFence-2.2.2/libefence.a -lpthread
NASM
=
nasm
...
...
src/TODO
View file @
e123336b
...
...
@@ -10,7 +10,12 @@ some sort of garbage collection
the right place
* every structure that is read/written must be PACKED, with datatypes
specifically set! (ie, no int, but short or long int)
* is that memory intro screen needed anymore? probably not
* or at least have PACKED versions of read/write structures, and transfer
to/from just for reading, so only not-packed structures are used during
actual gameplay/etc.
* is that memory intro screen needed anymore? probably not, although it
would be nice to show what version is loaded, but doom just printed text
* then, what about PG13? OH NO!!!!
* fix the input code, everything is spread out... ideally everything should
work the same, let the input handler do it all instead
* when viewsize is around 20, sprites end up being drawn over the border.
...
...
@@ -26,11 +31,10 @@ version than a spanish version
* fix status bar gfx junk, and those tiles that do not wish to be extracted
* Use either US_CheckParm or MS_CheckParm.
* perhaps rename UPLOAD
TOO MANY #IFDEF.
and upload builds with lots of wl6 code anyway (sound references were just
if
defed
* TOO MANY #IFDEFs
*
and upload builds with lots of wl6 code anyway (sound references were just
if
ndefed out)
* verify if the sounds and graphics are correctly numbered, once again...
* remove -fwritable-strings
* find out why shareware version produces these messages:
CA_FarRead only read 471 out of 1671
Trying to free null audio chunk 207!
...
...
src/id_us.c
View file @
e123336b
...
...
@@ -111,11 +111,12 @@ int US_CheckParm(char *parm,char **strings)
// supported.
//
///////////////////////////////////////////////////////////////////////////
void
US_Print
(
char
*
s
)
void
US_Print
(
char
*
s
tr
)
{
char
c
,
*
se
;
word
w
,
h
;
char
c
,
*
se
,
*
s
,
*
sz
=
strdup
(
str
);
word
w
,
h
;
s
=
sz
;
while
(
*
s
)
{
se
=
s
;
...
...
@@ -140,6 +141,8 @@ void US_Print(char *s)
else
PrintX
+=
w
;
}
free
(
sz
);
}
///////////////////////////////////////////////////////////////////////////
...
...
@@ -228,10 +231,13 @@ void US_CPrintLine(char *s)
// supported.
//
///////////////////////////////////////////////////////////////////////////
void
US_CPrint
(
char
*
s
)
void
US_CPrint
(
char
*
s
tr
)
{
char
c
,
*
se
;
/* Functions like to pass a string constant */
char
c
,
*
se
,
*
s
,
*
sz
=
strdup
(
str
);
s
=
sz
;
while
(
*
s
)
{
se
=
s
;
...
...
@@ -248,6 +254,8 @@ void US_CPrint(char *s)
s
++
;
}
}
free
(
sz
);
}
///////////////////////////////////////////////////////////////////////////
...
...
@@ -305,7 +313,7 @@ US_DrawWindow(word x,word y,word w,word h)
// USL_XORICursor() - XORs the I-bar text cursor. Used by US_LineInput()
//
///////////////////////////////////////////////////////////////////////////
static
void
USL_XORICursor
(
int
x
,
int
y
,
char
*
s
,
word
cursor
)
static
void
USL_XORICursor
(
int
x
,
int
y
,
char
*
s
,
word
cursor
)
{
static
boolean
status
;
// VGA doesn't XOR...
char
buf
[
MaxString
];
...
...
src/version.h
View file @
e123336b
...
...
@@ -5,7 +5,7 @@
/* WL6 = 1 */
/* SDM = 2 */
/* SOD = 3 */
#define WMODE
3
#define WMODE
1
#if WMODE == 0
/* #define SPEAR */
...
...
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