Announcement

Collapse
No announcement yet.

DEBUG: Forts and Vision

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • DEBUG: Forts and Vision

    If you place a fort on the map no problem, but if you remove it from the map, you see "interesting" side effects. For example the tiles in the vision range of the fort are dimmed as they are under the fog of war, even if the according tile is in the vision range of one of your units or cities. If you place again a fort and remove it and place it again and remove it. The according tiles change to unexplored iven if you have a unit on such a tile directly.

    The debug version throws also asserts, when you remove a fort, doesn't matter whether you used the erase function of the cheat editor or slic or pillaged it. The assert is thrown from the ..\ctp2_code\gs\gameobj\Vision.cpp.
    The expresion is:
    ((*entry) & k_VISIBLE_REFERENCE_MASK) != 0

    Unfortunatly I wasn't able to localize the problem, it just seems to me that the problem is not cause at that place, but somewhere else, maybe when the vision to the fort is added.

    -Martin
    Civ2 military advisor: "No complaints, Sir!"
Working...
X