repo.or.cz
/
menche_rl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
add make target that prints CC, CFLAGS, and LDFLAGS
[menche_rl.git]
/
map.c
blob
badb8504122a639fc65f38f34d57253578ee3ccc
1
#include <stdlib.h>
2
#include <string.h>
3
#include <stdint.h>
4
#include
"map.h"
5
6
enum
tile
*
get_sector
(
int
y
,
int
x
)
7
{
8
uint8_t
i
=
0
;
9
enum
tile
*
r
=
calloc
(
16
*
16
,
sizeof
(
enum
tile
));
10
11
for
(;
i
<(
16
*
16
)/
4
;
i
++)
12
get_tile
(
r
,
rand
()%
16
,
rand
()%
16
) =
TILE_TREE
;
13
14
return
r
;
15
}
16