Убрал send в чат из user::class. Убрал лишние вызовы.

This commit is contained in:
2023-02-02 17:39:42 +02:00
parent a9dc9af61e
commit 253a8dca63
10 changed files with 622 additions and 586 deletions
+7 -5
View File
@@ -3728,11 +3728,13 @@ class Battle
);
if (isset($a['id'])) {
if ($a['eda'] < 1) {
$u->send(
'', $this->users[$i]['room'], $this->users[$i]['city'], '',
$this->users[$i]['login'], '<strong>' . $a['name'] . '</strong> нуждается в еде...',
time(), 6, 0, 0, 0, 1
);
$cmsg = new ChatMessage();
$cmsg->setRoom($this->users[$i]['room']);
$cmsg->setCity($this->users[$i]['city']);
$cmsg->setTo($this->users[$i]['login']);
$cmsg->setText('<strong>' . $a['name'] . '</strong> нуждается в еде...');
$cmsg->setType(6);
$chat->sendMsg($cmsg);
}
}
}