summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon Howard2006-09-20 10:27:22 +0000
committerSimon Howard2006-09-20 10:27:22 +0000
commit2a5258d085faade1dc06aee71ddae7ca6b425adf (patch)
treef94611e37c8a5f0138d08e26838bee0a47bdf005 /src
parente17b104d1bcb6dc1fdc4dc99ca202fd693955dfc (diff)
downloadchocolate-doom-2a5258d085faade1dc06aee71ddae7ca6b425adf.tar.gz
chocolate-doom-2a5258d085faade1dc06aee71ddae7ca6b425adf.tar.bz2
chocolate-doom-2a5258d085faade1dc06aee71ddae7ca6b425adf.zip
Fix code style :-)
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 630
Diffstat (limited to 'src')
-rw-r--r--src/w_wad.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/w_wad.c b/src/w_wad.c
index a0b103ae..77b5ce35 100644
--- a/src/w_wad.c
+++ b/src/w_wad.c
@@ -1,7 +1,7 @@
// Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
-// $Id: w_wad.c 629 2006-09-20 06:08:37Z rtc_marine $
+// $Id: w_wad.c 630 2006-09-20 10:27:22Z fraggle $
//
// Copyright(C) 1993-1996 Id Software, Inc.
// Copyright(C) 2005 Simon Howard
@@ -66,7 +66,7 @@
static const char
-rcsid[] = "$Id: w_wad.c 629 2006-09-20 06:08:37Z rtc_marine $";
+rcsid[] = "$Id: w_wad.c 630 2006-09-20 10:27:22Z fraggle $";
#include <ctype.h>
@@ -596,22 +596,22 @@ void W_GenerateHashTable(void)
// Generate hash table
if (numlumps > 0)
- {
- lumphash = Z_Malloc(sizeof(lumpinfo_t *) * numlumps, PU_STATIC, NULL);
- memset(lumphash, 0, sizeof(lumpinfo_t *) * numlumps);
+ {
+ lumphash = Z_Malloc(sizeof(lumpinfo_t *) * numlumps, PU_STATIC, NULL);
+ memset(lumphash, 0, sizeof(lumpinfo_t *) * numlumps);
- for (i=0; i<numlumps; ++i)
- {
- unsigned int hash;
+ for (i=0; i<numlumps; ++i)
+ {
+ unsigned int hash;
- hash = W_LumpNameHash(lumpinfo[i].name) % numlumps;
+ hash = W_LumpNameHash(lumpinfo[i].name) % numlumps;
- // Hook into the hash table
+ // Hook into the hash table
- lumpinfo[i].next = lumphash[hash];
- lumphash[hash] = &lumpinfo[i];
- }
+ lumpinfo[i].next = lumphash[hash];
+ lumphash[hash] = &lumpinfo[i];
}
+ }
// All done!
}