mirror of
https://github.com/vivier/EMILE.git
synced 2024-12-22 10:29:31 +00:00
21 lines
298 B
C
21 lines
298 B
C
|
/*
|
||
|
*
|
||
|
* (c) 2004-2007 Laurent Vivier <Laurent@lvivier.info>
|
||
|
*
|
||
|
*/
|
||
|
|
||
|
#include "libmap.h"
|
||
|
|
||
|
int map_set_driver_number(map_t *map, int number)
|
||
|
{
|
||
|
if (!map_is_valid(map))
|
||
|
return -1;
|
||
|
|
||
|
if (number >= DD_MAX_DRIVER)
|
||
|
return -1;
|
||
|
|
||
|
write_short((u_int16_t*)&map->drivers.DrvrCount, number);
|
||
|
|
||
|
return 0;
|
||
|
}
|