projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added description for BD style explosion
[rocksndiamonds.git]
/
src
/
libgame
/
setup.c
diff --git
a/src/libgame/setup.c
b/src/libgame/setup.c
index 25ad716ba0785bdca0d87afba3ef817ce610f4cb..4027a6e065a4f23823b7c1050345a08330c9b6a7 100644
(file)
--- a/
src/libgame/setup.c
+++ b/
src/libgame/setup.c
@@
-2331,7
+2331,7
@@
int hash_key_integers_are_equal(void *key1, void *key2)
SetupFileHash *newSetupFileHash(void)
{
SetupFileHash *new_hash =
SetupFileHash *newSetupFileHash(void)
{
SetupFileHash *new_hash =
- create_hashtable(
16, 0.75, get_hash_from_string, hash_key_strings_are_equal
);
+ create_hashtable(
get_hash_from_string, hash_key_strings_are_equal, free, free
);
if (new_hash == NULL)
Fail("create_hashtable() failed -- out of memory");
if (new_hash == NULL)
Fail("create_hashtable() failed -- out of memory");
@@
-2344,7
+2344,7
@@
void freeSetupFileHash(SetupFileHash *hash)
if (hash == NULL)
return;
if (hash == NULL)
return;
- hashtable_destroy(hash
, 1); // 1 == also free values stored in hash
+ hashtable_destroy(hash
);
}
char *getHashEntry(SetupFileHash *hash, char *token)
}
char *getHashEntry(SetupFileHash *hash, char *token)