Indented with src/scripts/indent-emp.
This commit is contained in:
parent
5f263a7753
commit
9b7adfbecc
437 changed files with 52211 additions and 51052 deletions
|
@ -52,7 +52,7 @@ static struct as_frompath **fromhead = (struct as_frompath **)0;
|
|||
/* Note that we only want to cache during updates. Other times, it
|
||||
* probably doesn't make much sense, but can be done. */
|
||||
|
||||
static int as_cachepath_on = 0; /* Default to off */
|
||||
static int as_cachepath_on = 0; /* Default to off */
|
||||
|
||||
void
|
||||
as_enable_cachepath()
|
||||
|
@ -107,9 +107,9 @@ as_add_cachepath(struct as_data *adp)
|
|||
/* And set some stuff */
|
||||
from->x = adp->from.x;
|
||||
/* Here we malloc a whole bunch of tolist pointers. */
|
||||
from->tolist = (struct as_topath **)calloc(1,
|
||||
sizeof(struct as_topath *) *
|
||||
WORLD_Y);
|
||||
from->tolist = (struct as_topath **)calloc(1,
|
||||
sizeof(struct as_topath
|
||||
*) * WORLD_Y);
|
||||
/* Now, add from to the global list */
|
||||
from->next = fromhead[adp->from.y];
|
||||
fromhead[adp->from.y] = from;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue