v1.1.5
### 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:
parent
96d172878f
commit
03e13655ce
2
lib.php
2
lib.php
|
@ -2,7 +2,7 @@
|
|||
|
||||
$starttime = getmicrotime();
|
||||
$numqueries = 0;
|
||||
$version = "1.1.4";
|
||||
$version = "1.1.5";
|
||||
$build = "";
|
||||
|
||||
function opendb() { // Open database connection.
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user