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
fc651432
Commit
fc651432
authored
Apr 18, 2000
by
Steven Fuller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A few more cleanups...
parent
3cadc473
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
316 deletions
+24
-316
id_ca.c
src/id_ca.c
+16
-302
wl_game.c
src/wl_game.c
+8
-14
No files found.
src/id_ca.c
View file @
fc651432
This diff is collapsed.
Click to expand it.
src/wl_game.c
View file @
fc651432
...
@@ -194,7 +194,6 @@ void ClearMemory (void)
...
@@ -194,7 +194,6 @@ void ClearMemory (void)
MM_SortMem
();
MM_SortMem
();
}
}
/*
/*
==========================
==========================
=
=
...
@@ -647,22 +646,17 @@ void SetupGameLevel (void)
...
@@ -647,22 +646,17 @@ void SetupGameLevel (void)
//
//
// copy the wall data to a data segment array
// copy the wall data to a data segment array
//
//
memset
(
tilemap
,
0
,
sizeof
(
tilemap
));
memset
(
tilemap
,
0
,
sizeof
(
tilemap
));
memset
(
actorat
,
0
,
sizeof
(
actorat
));
memset
(
actorat
,
0
,
sizeof
(
actorat
));
map
=
mapsegs
[
0
];
map
=
mapsegs
[
0
];
for
(
y
=
0
;
y
<
mapheight
;
y
++
)
for
(
y
=
0
;
y
<
mapheight
;
y
++
)
for
(
x
=
0
;
x
<
mapwidth
;
x
++
)
for
(
x
=
0
;
x
<
mapwidth
;
x
++
)
{
{
tile
=
*
map
++
;
tile
=
*
map
++
;
if
(
tile
<
AREATILE
)
if
(
tile
<
AREATILE
)
{
// solid wall
{
// solid wall
tilemap
[
x
][
y
]
=
tile
;
tilemap
[
x
][
y
]
=
tile
;
(
unsigned
)
actorat
[
x
][
y
]
=
tile
;
(
unsigned
)
actorat
[
x
][
y
]
=
tile
;
}
}
else
{
// area floor
else
{
// area floor
tilemap
[
x
][
y
]
=
0
;
tilemap
[
x
][
y
]
=
0
;
(
unsigned
)
actorat
[
x
][
y
]
=
0
;
(
unsigned
)
actorat
[
x
][
y
]
=
0
;
}
}
...
@@ -671,9 +665,9 @@ void SetupGameLevel (void)
...
@@ -671,9 +665,9 @@ void SetupGameLevel (void)
//
//
// spawn doors
// spawn doors
//
//
InitActorList
();
// start spawning things with a clean slate
InitActorList
();
// start spawning things with a clean slate
InitDoorList
();
InitDoorList
();
InitStaticList
();
InitStaticList
();
map
=
mapsegs
[
0
];
map
=
mapsegs
[
0
];
for
(
y
=
0
;
y
<
mapheight
;
y
++
)
for
(
y
=
0
;
y
<
mapheight
;
y
++
)
...
@@ -919,7 +913,7 @@ void StartDemoRecord (int levelnumber)
...
@@ -919,7 +913,7 @@ void StartDemoRecord (int levelnumber)
==================
==================
*/
*/
char
demoname
[
13
]
=
"DEMO
?."
;
char
demoname
[
13
]
=
"demo
?."
;
void
FinishDemoRecord
(
void
)
void
FinishDemoRecord
(
void
)
{
{
...
...
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