mirror of
https://github.com/tbamud/tbamud.git
synced 2026-02-16 04:48:05 +01:00
Remove conf.h from SVN and some bug fixes
This commit is contained in:
parent
95b4f8267c
commit
2743ff82ec
15 changed files with 178 additions and 481 deletions
12
src/utils.c
12
src/utils.c
|
|
@ -1459,3 +1459,15 @@ char *strpaste(char *str1, char *str2, char *joiner)
|
|||
*rp = '\0';
|
||||
return ret;
|
||||
}
|
||||
|
||||
/* Create a blank affect struct */
|
||||
void new_affect(struct affected_type *af)
|
||||
{
|
||||
int i;
|
||||
af->type = 0;
|
||||
af->duration = 0;
|
||||
af->modifier = 0;
|
||||
af->location = APPLY_NONE;
|
||||
for (i=0; i<AF_ARRAY_MAX; i++) af->bitvector[i]=0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue