home
·
contact
·
privacy
projects
/
plomrogue
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Server: Refactor yx_uint8 moving; handle actors hitting the map edge.
[plomrogue]
/
src
/
server
/
cleanup.c
diff --git
a/src/server/cleanup.c
b/src/server/cleanup.c
index 02f52b3d7d13b32d49cb2ff1e9a0c27af90ece95..1eebbaf01a3a76b281332831f5a5b11385147191 100644
(file)
--- a/
src/server/cleanup.c
+++ b/
src/server/cleanup.c
@@
-20,13
+20,12
@@
static uint32_t cleanup_flags = 0x0000;
extern void cleanup()
{
extern void cleanup()
{
- char * f_name = "cleanup()";
free(world.queue);
free(world.log);
free(world.map.cells);
if (cleanup_flags & CLEANUP_WORLDSTATE)
{
free(world.queue);
free(world.log);
free(world.map.cells);
if (cleanup_flags & CLEANUP_WORLDSTATE)
{
- unlink(s[PATH_WORLDSTATE]);
+ unlink(s[
S_
PATH_WORLDSTATE]);
}
if (cleanup_flags & CLEANUP_THINGS)
{
}
if (cleanup_flags & CLEANUP_THINGS)
{
@@
-42,14
+41,14
@@
extern void cleanup()
}
if (cleanup_flags & CLEANUP_IN)
{
}
if (cleanup_flags & CLEANUP_IN)
{
- try_fclose(world.file_in,
f_name
);
- unlink(s[PATH_IN]);
+ try_fclose(world.file_in,
__func__
);
+ unlink(s[
S_
PATH_IN]);
}
if (cleanup_flags & CLEANUP_OUT)
{
}
if (cleanup_flags & CLEANUP_OUT)
{
- try_fclose(world.file_out,
f_name
);
+ try_fclose(world.file_out,
__func__
);
free(world.server_test);
free(world.server_test);
- unlink(s[PATH_OUT]);
+ unlink(s[
S_
PATH_OUT]);
}
}
}
}