|
Purpose |
Finds the width of a map | |
|
Old name |
#define mapwidth map_get_width | |
|
Syntax |
int map_get_width(mapnr) | |
|
Parameters |
int mapnr |
The number of the map whose width is required |
|
Description |
This function gives the width of the specified map. All maps have a default width of the screen in use when the map was posted, unless the default is explicitly overridden with MAPEDIT or MAPPOST. The map must be on the screen when the function map_get_width() is called, else the program is terminated with an error message. This function is rarely used. | |
|
Return values |
Width of specified map | |
|
See also |
||
|
Example |
width = map_get_width(1); | |