garten

view growth.c @ 17:5e6c9260913a

lots of cleanups and small fixes
author meillo@marmaro.de
date Wed, 23 Jul 2008 17:14:38 +0200
parents 8db6497d6065
children 5937504619f2
line source
1 #include <stdio.h>
2 #include <stdlib.h>
3 #include "db.h"
4 #include "game.h"
7 void grow_plants() {
8 sprintf(query,
9 "update field "
10 "set age = age+1, size = size+1 "
11 );
12 if (!db_update(query)) {
13 db_error("grow plants");
14 }
15 }
18 void growth(void) {
19 grow_plants();
20 }