| 370 | } |
| 371 | |
| 372 | void Game_Map::SetupCommon() { |
| 373 | screen_width = (Player::screen_width / 16.0) * SCREEN_TILE_SIZE; |
| 374 | screen_height = (Player::screen_height / 16.0) * SCREEN_TILE_SIZE; |
| 375 | |
| 376 | if (!Tr::GetCurrentTranslationId().empty()) { |
| 377 | TranslateMapMessages(GetMapId(), *map); |
| 378 | } |
| 379 | SetNeedRefresh(true); |
| 380 | |
| 381 | PrintPathToMap(); |
| 382 | |
| 383 | if (translation_changed) { |
| 384 | InitCommonEvents(); |
| 385 | } |
| 386 | |
| 387 | map_cache->Clear(); |
| 388 | |
| 389 | CreateMapEvents(); |
| 390 | } |
| 391 | |
| 392 | void Game_Map::CreateMapEvents() { |
| 393 | events.reserve(map->events.size()); |