multiplayer nearly there, just a bug or two

This commit is contained in:
Eric Fredricksen
2021-12-09 09:11:01 -08:00
committed by Eric Fredricksen
parent 48cc250bff
commit 09a5e8479b
2 changed files with 57 additions and 23 deletions
+3 -3
View File
@@ -162,8 +162,8 @@ function sold() {
if ($("#multiplayer:checked").length > 0) {
newguy.online = {
realm: "Alpaquil",
// host: "http://progressquest.com/alpaquil.php?",
host: "http://localhost:9001/alpaquil.php?",
host: "http://progressquest.com/alpaquil.php?",
// host: "http://localhost:9001/alpaquil.php?",
}
$("#sold").prop("disabled", true);
@@ -177,7 +177,7 @@ function sold() {
$.ajax(url)
.done(body => {
if (body.split('|')[0].toLowerCase() == 'ok') {
newguy.online.passkey = body.split('|')[1];
newguy.online.passkey = parseInt(body.split('|')[1]);
charIsBorn(newguy);
} else {
$("#sold").prop("disabled", false);