[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Stratagus-CVS] stratagus/src/sound unitsound.c
From: |
Martin Renold |
Subject: |
[Stratagus-CVS] stratagus/src/sound unitsound.c |
Date: |
Wed, 23 Jul 2003 05:02:34 -0400 |
CVSROOT: /cvsroot/stratagus
Module name: stratagus
Branch:
Changes by: Martin Renold <address@hidden> 03/07/23 05:02:33
Modified files:
src/sound : unitsound.c
Log message:
Changed UnitTypes to an array of pointers.
Patches:
Index: stratagus/src/sound/unitsound.c
diff -u stratagus/src/sound/unitsound.c:1.21
stratagus/src/sound/unitsound.c:1.22
--- stratagus/src/sound/unitsound.c:1.21 Fri Jul 11 10:35:33 2003
+++ stratagus/src/sound/unitsound.c Wed Jul 23 05:02:33 2003
@@ -26,7 +26,7 @@
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
// 02111-1307, USA.
//
-// $Id: unitsound.c,v 1.21 2003/07/11 14:35:33 n0body Exp $
+// $Id: unitsound.c,v 1.22 2003/07/23 09:02:33 martinxyz Exp $
//@{
@@ -256,6 +256,7 @@
global void MapUnitSounds(void)
{
UnitType* type;
+ int i;
if( SoundFildes!=-1 ) {
SetSoundRange(SoundIdForName("tree chopping"),32);
@@ -263,7 +264,8 @@
//
// Parse all units sounds.
//
- for( type=UnitTypes; type->OType; type++) {
+ for( i=0; i<NumUnitTypes; ++i ) {
+ type = UnitTypes[i];
if( type->Sound.Selected.Name ) {
type->Sound.Selected.Sound=
SoundIdForName(type->Sound.Selected.Name);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Stratagus-CVS] stratagus/src/sound unitsound.c,
Martin Renold <=