Robosturm / Commander_Wars

The aim of this project is to create an Advance Wars Clone with a lot of additions customizations and modding support. For Contact Inforamtion see the wiki page. Take a view on the game.
https://github.com/Robosturm/Commander_Wars/releases
GNU Lesser General Public License v3.0
213 stars 33 forks source link

In Fog of War, AI Enemy's Submarine Dive/Undive Sprite is Visible to Player When Outside Player's Vision #1789

Closed FruityGumGuiltyFruit closed 4 months ago

FruityGumGuiltyFruit commented 4 months ago

Describe the bug When playing Fog of War against an AI, you can see the dive/undive sprite of enemy submarines when they are outside your vision. https://github.com/Robosturm/Commander_Wars/blob/master/resources/images/animations/undive.png https://github.com/Robosturm/Commander_Wars/blob/master/resources/images/animations/dive.png

To Reproduce Steps to reproduce the behavior:

  1. Start a Fog of War match against an AI, that has submarines or harbours.
  2. Play until AI dives/surfaces submarine outside vision
  3. See error

Expected behavior This sprite should not be visible to the player if the submarine is outside the player's vision. They player can still listen for the noise to know if a submarine is diving/surfacing, but now they won't know the exact location of the submarine.

Screenshots submarine

Here is the test map design I used. It is 10x10. image

Desktop (please complete the following information):

Robosturm commented 4 months ago

1793