From 03e13655ce8193b4d7348c22ddad1dfb0d7acecd Mon Sep 17 00:00:00 2001 From: Jamin Blount Date: Sun, 5 Feb 2017 11:04:25 -0600 Subject: [PATCH] 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. --- lib.php | 2 +- towns.php | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib.php b/lib.php index 2a59d00..48816dd 100644 --- a/lib.php +++ b/lib.php @@ -2,7 +2,7 @@ $starttime = getmicrotime(); $numqueries = 0; -$version = "1.1.4"; +$version = "1.1.5"; $build = ""; function opendb() { // Open database connection. diff --git a/towns.php b/towns.php index 29e287c..3b3db53 100644 --- a/towns.php +++ b/towns.php @@ -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);