mirror of
https://bitbucket.org/grumdrig/pq-web.git
synced 2026-09-29 08:44:00 -06:00
multiplayer nearly there, just a bug or two
This commit is contained in:
committed by
Eric Fredricksen
parent
48cc250bff
commit
09a5e8479b
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user