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:
867fe8e
)
Grew number of monsters / items.
author
Christian Heller
<c.heller@plomlompom.de>
Tue, 2 Jul 2013 01:42:42 +0000
(
03:42
+0200)
committer
Christian Heller
<c.heller@plomlompom.de>
Tue, 2 Jul 2013 01:42:42 +0000
(
03:42
+0200)
src/roguelike.c
patch
|
blob
|
history
diff --git
a/src/roguelike.c
b/src/roguelike.c
index 04da8a654799397ccdf031d499136ba21db36340..0a5702f09d86d3a62bce681658f0463ac8435461 100644
(file)
--- a/
src/roguelike.c
+++ b/
src/roguelike.c
@@
-207,7
+207,7
@@
int main (int argc, char *argv[]) {
char i;
struct Monster * monster = malloc(sizeof(struct Monster));
world.monster = monster;
char i;
struct Monster * monster = malloc(sizeof(struct Monster));
world.monster = monster;
- for (i = 0; i <
2
; i++) {
+ for (i = 0; i <
8
; i++) {
monster->name = 'M';
monster->next = malloc(sizeof(struct Monster));
monster = monster->next; }
monster->name = 'M';
monster->next = malloc(sizeof(struct Monster));
monster = monster->next; }
@@
-215,7
+215,7
@@
int main (int argc, char *argv[]) {
monster->next = 0;
struct Item * item = malloc(sizeof(struct Item));
world.item = item;
monster->next = 0;
struct Item * item = malloc(sizeof(struct Item));
world.item = item;
- for (i = 0; i <
2
; i++) {
+ for (i = 0; i <
8
; i++) {
item->name = '#';
item->next = malloc(sizeof(struct Item));
item = item->next; }
item->name = '#';
item->next = malloc(sizeof(struct Item));
item = item->next; }