Don't skip replay map if replayer left.
This commit is contained in:
		| @@ -201,7 +201,7 @@ class MapQueue implements CallbackListener, CommandListener { | |||||||
| 				unset($this->queuedMaps[$map->uid]); | 				unset($this->queuedMaps[$map->uid]); | ||||||
| 			} | 			} | ||||||
|  |  | ||||||
| 			array_unshift($this->queuedMaps, array($player, $map)); | 			array_unshift($this->queuedMaps, array($player, $map, true)); | ||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| @@ -301,6 +301,11 @@ class MapQueue implements CallbackListener, CommandListener { | |||||||
| 			foreach ($this->queuedMaps as $queuedMap) { | 			foreach ($this->queuedMaps as $queuedMap) { | ||||||
| 				$player = $queuedMap[0]; | 				$player = $queuedMap[0]; | ||||||
|  |  | ||||||
|  | 				// Check if map is added via replay vote/command | ||||||
|  | 				if(isset($queuedMap[2]) && $queuedMap[2] === true) { | ||||||
|  | 					break; | ||||||
|  | 				} | ||||||
|  |  | ||||||
| 				//found player, so play this map | 				//found player, so play this map | ||||||
| 				if ($this->maniaControl->playerManager->getPlayer($player->login)) { | 				if ($this->maniaControl->playerManager->getPlayer($player->login)) { | ||||||
| 					break; | 					break; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user