move game type to Game struct
[netris.git] / server.c
index fe7eefc0e59e6dcafd217e480fab0ff824757ee9..3d6652ac43118fb24fb4bf724a32ae9491b7d9fd 100644 (file)
--- a/server.c
+++ b/server.c
@@ -313,7 +313,7 @@ int StartServer(void)
 
                                                memcpy(&data, &Players[event.u.net.sender].flags,
                                                        sizeof(data.playerflags));
-                                               memcpy(&data.gravity, &Game,
+                                               memcpy(&data.gravity, &Game.gravity,
                                                        sizeof(data) - sizeof(data.playerflags));
                                                SendPacketTo(event.u.net.sender, 0, NP_gamedata,
                                                        sizeof(data), &data);
@@ -455,22 +455,6 @@ void SUsage(void)
        );
 }
 
-void WriteConf(void)
-{
-       FILE *file_out;
-
-       file_out = fopen(CONFIG_FILE, "w");
-       if (file_out == NULL) {
-               perror("Error writing config file");
-               exit(1);
-       }
-
-       fprintf(file_out, "### NETRIS %s Config file ###\n\n", version_string);
-
-       fclose(file_out);
-       fprintf(stderr, "Wrote new game configuration to %s\n", CONFIG_FILE);
-}
-
 void HandleOption(char tag, char *value)
 {
        switch (tag) {