home
·
contact
·
privacy
projects
/
plomrogue
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b5bccd8
)
Restructured main() start. Start with empty log.
author
Christian Heller
<c.heller@plomlompom.de>
Wed, 29 May 2013 22:27:04 +0000
(
00:27
+0200)
committer
Christian Heller
<c.heller@plomlompom.de>
Wed, 29 May 2013 22:27:04 +0000
(
00:27
+0200)
roguelike.c
patch
|
blob
|
history
diff --git
a/roguelike.c
b/roguelike.c
index 3b92c11c6fa8efd35d0c19a9f669589c2f3e1e7c..0521ae953e818299c41bf6b461649cfbd347d527 100644
(file)
--- a/
roguelike.c
+++ b/
roguelike.c
@@
-220,6
+220,10
@@
void player_wait (struct World * world) {
int main (int argc, char *argv[]) {
struct World world;
+ init_keybindings(&world);
+
+ world.log = calloc(1, sizeof(char));
+ update_log (&world, " ");
struct Player player;
world.player = &player;
struct Monster monster;
@@
-234,10
+238,6
@@
int main (int argc, char *argv[]) {
world.seed = time(NULL);
world.turn = 1; }
rrand(1, world.seed);
-
- init_keybindings(&world);
- world.log = calloc(1, sizeof(char));
- update_log (&world, "Start!");
struct Map map = init_map();
world.map = ↦