]> git.lizzy.rs Git - dragonblocks_alpha.git/blobdiff - src/client/client_auth.c
Trees break if they have no connection to ground
[dragonblocks_alpha.git] / src / client / client_auth.c
index 4782d32a5f7f7043e17c963a62399b3ccba0aaf9..c0fa81af2c549e7a797d89240091da1692b97d5c 100644 (file)
@@ -8,6 +8,7 @@
 
 struct ClientAuth client_auth;
 
+#include <string.h>
 static void auth_loop()
 {
        while (!interrupt.set) switch (client_auth.state) {
@@ -15,8 +16,11 @@ static void auth_loop()
                        if (client_auth.name)
                                linenoiseFree(client_auth.name);
 
+                       /*
                        if (!(client_auth.name = linenoise("Enter name: ")))
                                return;
+                       */
+                       client_auth.name = strdup("singleplayer");
 
                        printf("[access] authenticating as %s...\n", client_auth.name);
                        client_auth.state = AUTH_WAIT;