map_hide()

Purpose

Hides a map that is visible on the screen

Old name

#define hidemap map_hide

Syntax

void map_hide(m)

Parameters

int m

Number of map to be hidden on screen

Description

The map_hide() function hides a map on the screen.

It can be re-displayed with a call to the functions map_reveal() or map_change(), for example:

map_change(m, RETAIN);

The function is implemented as:

map_change(m, HIDDEN);

Using the function map_hide() is preferred to using the function map_change() because it can reduce the code size if it is called a number of times.

Hiding maps takes up resources, and it may be better in an applications to clear the map and redisplay the map and its contents, as necessary, later.

See also

map_reveal(), map_change()