summaryrefslogtreecommitdiff
path: root/src/hexen/p_setup.c
diff options
context:
space:
mode:
authorSimon Howard2008-10-24 18:03:18 +0000
committerSimon Howard2008-10-24 18:03:18 +0000
commit06790ce0cdfeff84b8a92ede5c03cfd48342fcb4 (patch)
tree23b8714145ed5a736142f5e419c3f614dcc8b12b /src/hexen/p_setup.c
parent80eacd13f9d4e7111893de511d0b5ecd5402ee74 (diff)
downloadchocolate-doom-06790ce0cdfeff84b8a92ede5c03cfd48342fcb4.tar.gz
chocolate-doom-06790ce0cdfeff84b8a92ede5c03cfd48342fcb4.tar.bz2
chocolate-doom-06790ce0cdfeff84b8a92ede5c03cfd48342fcb4.zip
Further fixes to stop lumps being modified.
Subversion-branch: /branches/raven-branch Subversion-revision: 1363
Diffstat (limited to 'src/hexen/p_setup.c')
-rw-r--r--src/hexen/p_setup.c25
1 files changed, 17 insertions, 8 deletions
diff --git a/src/hexen/p_setup.c b/src/hexen/p_setup.c
index 653080e2..e5708e63 100644
--- a/src/hexen/p_setup.c
+++ b/src/hexen/p_setup.c
@@ -355,6 +355,7 @@ void P_LoadThings(int lump)
{
byte *data;
int i;
+ mapthing_t spawnthing;
mapthing_t *mt;
int numthings;
int playerCount;
@@ -366,14 +367,22 @@ void P_LoadThings(int lump)
mt = (mapthing_t *) data;
for (i = 0; i < numthings; i++, mt++)
{
- mt->tid = SHORT(mt->tid);
- mt->x = SHORT(mt->x);
- mt->y = SHORT(mt->y);
- mt->height = SHORT(mt->height);
- mt->angle = SHORT(mt->angle);
- mt->type = SHORT(mt->type);
- mt->options = SHORT(mt->options);
- P_SpawnMapThing(mt);
+ spawnthing.tid = SHORT(mt->tid);
+ spawnthing.x = SHORT(mt->x);
+ spawnthing.y = SHORT(mt->y);
+ spawnthing.height = SHORT(mt->height);
+ spawnthing.angle = SHORT(mt->angle);
+ spawnthing.type = SHORT(mt->type);
+ spawnthing.options = SHORT(mt->options);
+
+ spawnthing.special = mt->special;
+ spawnthing.arg1 = mt->arg1;
+ spawnthing.arg2 = mt->arg2;
+ spawnthing.arg3 = mt->arg3;
+ spawnthing.arg4 = mt->arg4;
+ spawnthing.arg5 = mt->arg5;
+
+ P_SpawnMapThing(&spawnthing);
}
P_CreateTIDList();
P_InitCreatureCorpseQueue(false); // false = do NOT scan for corpses