From fe4125a1a24abf5d137632122f7acfb629726a24 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Fri, 22 Sep 2006 22:43:28 +0000 Subject: Call the SpechitOverrun _after_ incrementing numspechit. Thanks to Quasar for pointing out this mistake. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 655 --- src/p_map.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src/p_map.c') 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 @@ -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; -- cgit v1.2.3