### 1.1.5 (9.22.2004) ###
### Thanks to Adam and Shadowbq. :)
- Fixed Travel To cheat that allowed you to escape from fights.
This commit is contained in:
Jamin Blount 2017-02-05 11:04:25 -06:00
parent 96d172878f
commit 03e13655ce
2 changed files with 3 additions and 1 deletions

View File

@ -2,7 +2,7 @@
$starttime = getmicrotime();
$numqueries = 0;
$version = "1.1.4";
$version = "1.1.5";
$build = "";
function opendb() { // Open database connection.

View File

@ -335,6 +335,8 @@ function travelto($id, $usepoints=true) { // Send a user to a town from the Trav
global $userrow, $numqueries;
if ($userrow["currentaction"] == "Fighting") { header("Location: index.php?do=fight"); die(); }
$townquery = doquery("SELECT name,travelpoints,latitude,longitude FROM {{table}} WHERE id='$id' LIMIT 1", "towns");
$townrow = mysql_fetch_array($townquery);