about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--src/game_data.cpp1
-rw-r--r--src/game_data.h1
-rw-r--r--src/tracker_panel.cpp3
3 files changed, 4 insertions, 1 deletions
diff --git a/src/game_data.cpp b/src/game_data.cpp index 2022097..31e23ec 100644 --- a/src/game_data.cpp +++ b/src/game_data.cpp
@@ -550,6 +550,7 @@ struct GameData {
550 for (MapArea &map_area : map_areas_) { 550 for (MapArea &map_area : map_areas_) {
551 for (const Location &location : map_area.locations) { 551 for (const Location &location : map_area.locations) {
552 map_area.classification |= location.classification; 552 map_area.classification |= location.classification;
553 map_area.hunt |= location.hunt;
553 } 554 }
554 } 555 }
555 556
diff --git a/src/game_data.h b/src/game_data.h index 721ecc6..8a38264 100644 --- a/src/game_data.h +++ b/src/game_data.h
@@ -98,6 +98,7 @@ struct MapArea {
98 int map_x; 98 int map_x;
99 int map_y; 99 int map_y;
100 int classification = 0; 100 int classification = 0;
101 bool hunt = false;
101}; 102};
102 103
103const std::vector<MapArea>& GD_GetMapAreas(); 104const std::vector<MapArea>& GD_GetMapAreas();
diff --git a/src/tracker_panel.cpp b/src/tracker_panel.cpp index f6fed25..5e035af 100644 --- a/src/tracker_panel.cpp +++ b/src/tracker_panel.cpp
@@ -104,7 +104,8 @@ void TrackerPanel::Redraw() {
104 104
105 for (AreaIndicator &area : areas_) { 105 for (AreaIndicator &area : areas_) {
106 const MapArea &map_area = GD_GetMapArea(area.area_id); 106 const MapArea &map_area = GD_GetMapArea(area.area_id);
107 if (!AP_IsLocationVisible(map_area.classification)) { 107 if (!AP_IsLocationVisible(map_area.classification) &&
108 !(map_area.hunt && GetTrackerConfig().show_hunt_panels)) {
108 area.active = false; 109 area.active = false;
109 continue; 110 continue;
110 } else { 111 } else {
4 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510