diff options
author | Simon Howard | 2006-09-22 22:43:28 +0000 |
---|---|---|
committer | Simon Howard | 2006-09-22 22:43:28 +0000 |
commit | fe4125a1a24abf5d137632122f7acfb629726a24 (patch) | |
tree | 235f00e1d3094113776398aa797d8f98cf681bd2 /src/p_map.c | |
parent | 74560947e2ff285718ed0ed71ae00bf1e77441e9 (diff) | |
download | chocolate-doom-fe4125a1a24abf5d137632122f7acfb629726a24.tar.gz chocolate-doom-fe4125a1a24abf5d137632122f7acfb629726a24.tar.bz2 chocolate-doom-fe4125a1a24abf5d137632122f7acfb629726a24.zip |
Call the SpechitOverrun _after_ incrementing numspechit. Thanks to Quasar
for pointing out this mistake.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 655
Diffstat (limited to 'src/p_map.c')
-rw-r--r-- | src/p_map.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/p_map.c b/src/p_map.c index cc75aa58..5f5272c5 100644 --- a/src/p_map.c +++ b/src/p_map.c @@ -1,7 +1,7 @@ // Emacs style mode select -*- C++ -*- //----------------------------------------------------------------------------- // -// $Id: p_map.c 592 2006-09-01 20:07:25Z fraggle $ +// $Id: p_map.c 655 2006-09-22 22:43:28Z fraggle $ // // Copyright(C) 1993-1996 Id Software, Inc. // Copyright(C) 2005 Simon Howard, Andrey Budko @@ -46,7 +46,7 @@ //----------------------------------------------------------------------------- static const char -rcsid[] = "$Id: p_map.c 592 2006-09-01 20:07:25Z fraggle $"; +rcsid[] = "$Id: p_map.c 655 2006-09-22 22:43:28Z fraggle $"; #include <stdlib.h> @@ -276,15 +276,14 @@ boolean PIT_CheckLine (line_t* ld) // if contacted a special line, add it to the list if (ld->special) { + spechit[numspechit] = ld; + numspechit++; + // fraggle: spechits overrun emulation code from prboom-plus if (numspechit > MAXSPECIALCROSS_ORIGINAL) { SpechitOverrun(ld); } - - spechit[numspechit] = ld; - - numspechit++; } return true; |