vimp-engine 0.6.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vimp-engine",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "description": "VIMP — движок-приложение (мастер, P2P-транспорт, Worker-хост, мета, MVC-каркас клиента)",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -141,6 +141,10 @@ class RoundManager {
141
141
  for (const user of this._participants.getHumans()) {
142
142
  const gameId = user.gameId;
143
143
 
144
+ // keyset наблюдателя уходит до очистки полотна: он выключает
145
+ // клиентский предикт, иначе тот успевает пересоздать сущность уже
146
+ // после CLEAR и она остаётся призраком до конца сессии
147
+ this._socketManager.sendSpectatorDefaultShot(user.socketId);
144
148
  this._socketManager.sendClear(user.socketId);
145
149
 
146
150
  // перемещение пользователя в наблюдатели
@@ -5,7 +5,7 @@ import gameConfig from './game.js';
5
5
  export default {
6
6
  elems: {
7
7
  authId: 'auth',
8
- formId: 'auth-form',
8
+ fieldsId: 'auth-form',
9
9
  errorId: 'auth-error',
10
10
  enterId: 'auth-enter',
11
11
  titleId: 'auth-title',