mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-09-20 08:57:24 +08:00
fix bug of culture points when found village
This commit is contained in:
@@ -473,7 +473,7 @@ class Units {
|
||||
if($session->access != BANNED){
|
||||
$mode = CP;
|
||||
$total = count($database->getProfileVillages($session->uid));
|
||||
$need_cps = ${'cp'.$mode}[$total];
|
||||
$need_cps = ${'cp'.$mode}[$total+1];
|
||||
$cps = $session->cp;
|
||||
$rallypoint = $database->getResourceLevel($village->wid);
|
||||
if($rallypoint['f39'] > 0){
|
||||
|
||||
Reference in New Issue
Block a user