Skip to content

Commit

Permalink
Automap|Fixed: Missing "All marks cleared" message
Browse files Browse the repository at this point in the history
  • Loading branch information
danij-deng committed Feb 3, 2012
1 parent c9d6a11 commit d8b89d4
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 12 deletions.
8 changes: 5 additions & 3 deletions doomsday/plugins/jdoom/src/st_stuff.c
Expand Up @@ -3173,9 +3173,11 @@ boolean ST_AutomapObscures(int player, int x, int y, int width, int height)

void ST_AutomapClearPoints(int player)
{
uiwidget_t* obj = ST_UIAutomapForPlayer(player);
if(!obj) return;
UIAutomap_ClearPoints(obj);
uiwidget_t* ob = ST_UIAutomapForPlayer(player);
if(!ob) return;

UIAutomap_ClearPoints(ob);
P_SetMessage(&players[player], AMSTR_MARKSCLEARED, false);
}

/**
Expand Down
8 changes: 5 additions & 3 deletions doomsday/plugins/jdoom64/src/st_stuff.c
Expand Up @@ -995,9 +995,11 @@ boolean ST_AutomapObscures(int player, int x, int y, int width, int height)

void ST_AutomapClearPoints(int player)
{
uiwidget_t* obj = ST_UIAutomapForPlayer(player);
if(!obj) return;
UIAutomap_ClearPoints(obj);
uiwidget_t* ob = ST_UIAutomapForPlayer(player);
if(!ob) return;

UIAutomap_ClearPoints(ob);
P_SetMessage(&players[player], AMSTR_MARKSCLEARED, false);
}

/**
Expand Down
8 changes: 5 additions & 3 deletions doomsday/plugins/jheretic/src/st_stuff.c
Expand Up @@ -3020,9 +3020,11 @@ boolean ST_AutomapObscures(int player, int x, int y, int width, int height)

void ST_AutomapClearPoints(int player)
{
uiwidget_t* obj = ST_UIAutomapForPlayer(player);
if(!obj) return;
UIAutomap_ClearPoints(obj);
uiwidget_t* ob = ST_UIAutomapForPlayer(player);
if(!ob) return;

UIAutomap_ClearPoints(ob);
P_SetMessage(&players[player], AMSTR_MARKSCLEARED, false);
}

/**
Expand Down
8 changes: 5 additions & 3 deletions doomsday/plugins/jhexen/src/st_stuff.c
Expand Up @@ -3305,9 +3305,11 @@ boolean ST_AutomapObscures(int player, int x, int y, int width, int height)

void ST_AutomapClearPoints(int player)
{
uiwidget_t* obj = ST_UIAutomapForPlayer(player);
if(!obj) return;
UIAutomap_ClearPoints(obj);
uiwidget_t* ob = ST_UIAutomapForPlayer(player);
if(!ob) return;

UIAutomap_ClearPoints(ob);
P_SetMessage(&players[player], AMSTR_MARKSCLEARED, false);
}

/**
Expand Down

0 comments on commit d8b89d4

Please sign in to comment.