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: Remove unused/obsolete world.enemy_fov.
[plomrogue]
/
src
/
server
/
main.c
diff --git
a/src/server/main.c
b/src/server/main.c
index 366fb17b8864abdb58e539098bc683f49bac5df5..33e539102beded5802016eadea339ea40f2cc77e 100644
(file)
--- a/
src/server/main.c
+++ b/
src/server/main.c
@@
-5,6
+5,7
@@
#include "../common/rexit.h" /* exit_err, set_cleanup_func() */
#include "cleanup.h" /* set_cleanup_flag(), cleanup() */
#include "configfile.h" /* read_config_file() */
#include "../common/rexit.h" /* exit_err, set_cleanup_func() */
#include "cleanup.h" /* set_cleanup_flag(), cleanup() */
#include "configfile.h" /* read_config_file() */
+#include "hardcoded_strings.h" /* s */
#include "init.h" /* run_game(), obey_argv(), obey_argv(), setup_server_io() */
#include "world.h" /* struct World */
#include "init.h" /* run_game(), obey_argv(), obey_argv(), setup_server_io() */
#include "world.h" /* struct World */
@@
-20,6
+21,7
@@
int main(int argc, char ** argv)
set_cleanup_func(cleanup);
/* Init settings from command line / hard-coded values. Print start info. */
set_cleanup_func(cleanup);
/* Init settings from command line / hard-coded values. Print start info. */
+ init_strings();
obey_argv(argc, argv);
if (world.is_verbose)
{
obey_argv(argc, argv);
if (world.is_verbose)
{
@@
-33,12
+35,6
@@
int main(int argc, char ** argv)
exit_err(-1 == test, printf_err);
}
}
exit_err(-1 == test, printf_err);
}
}
- world.path_config = "confserver/world";
- world.path_worldstate = "server/worldstate";
- world.path_out = "server/out";
- world.path_in = "server/in";
- world.path_record = "record";
- world.tmp_suffix = "_tmp";
/* Init config file and server i/o files. */
read_config_file();
/* Init config file and server i/o files. */
read_config_file();