small maplsit fix + try to fix the client crashes

This commit is contained in:
kremsy 2014-04-09 10:38:00 +02:00 committed by Steffen Schröder
parent c3580f41f7
commit 20c07a9646
2 changed files with 6 additions and 1 deletions

View File

@ -220,6 +220,11 @@ class Client
throw new FatalException('deb1 transport error - connection interrupted!' . $contents, FatalException::INTERRUPTED);
}
$contents .= $newContent;
if(strlen($contents) < 8){
usleep(10);
var_dump("deb1 test new");
}
}
$array_result = unpack('Vsize/Vhandle', $contents);

View File

@ -268,7 +268,7 @@ class MapList implements ManialinkPageAnswerListener, CallbackListener {
// Display Maps
$array = array($id => $x + 5, $mxId => $x + 10, Formatter::stripDirtyCodes($map->name) => $x + 20, $map->authorNick => $x + 68);
$labels = $this->maniaControl->manialinkManager->labelLine($mapFrame, $array);
if ($labels[3]) {
if (isset($labels[3])) {
$script->addTooltip($labels[3], $descriptionLabel, array(Script::OPTION_TOOLTIP_TEXT => '$<' . $map->name . '$> made by $<' . $map->authorLogin . '$>'));
}