shithub: choc

Download patch

ref: d91c6811001a66418757efed10ae9ff503a500be
parent: 7931b1c8f3e3b1a10945dbd059c4dbfbd47eb6f3
author: James Haley <haleyjd@hotmail.com>
date: Mon Aug 30 23:26:51 EDT 2010

MAXANIMS raised from 32 to 40 to match binary and stop semi-random
crashing.

Subversion-branch: /branches/strife-branch
Subversion-revision: 1983

--- a/src/strife/p_spec.c
+++ b/src/strife/p_spec.c
@@ -82,12 +82,9 @@
 } animdef_t;
 
 
+// haleyjd 08/30/10: [STRIFE] MAXANIMS raised from 32 to 40
+#define MAXANIMS                40
 
-#define MAXANIMS                32
-
-extern anim_t	anims[MAXANIMS];
-extern anim_t*	lastanim;
-
 //
 // P_InitPicAnims
 //
@@ -141,10 +138,9 @@
     { -1,    NULL,       NULL,        0},
 };
 
-anim_t		anims[MAXANIMS];
-anim_t*		lastanim;
+anim_t  anims[MAXANIMS];
+anim_t* lastanim;
 
-
 //
 //      Animating line specials
 //
@@ -1070,9 +1066,8 @@
         // SECRET SECTOR
         //player->secretcount++; [STRIFE] Don't have a secret count.
         sector->special = 0;
-        // STRIFE-TODO: sfx_yeah when secret is found
-        //if(player - players == consoleplayer)
-        //    S_StartSound(NULL, sfx_yeah);
+        if(player - players == consoleplayer)
+            S_StartSound(NULL, sfx_yeah);
         break;
 
     case 11: