mirror of
https://github.com/brmlab/brmlife.git
synced 2025-08-02 18:03:37 +02:00
connection::senses(): Enlarge buffer size, pheromones can get very long
This commit is contained in:
parent
3889fba5d4
commit
cf5586c35f
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ connection::senses(int tick_id, class agent &a)
|
|||
};
|
||||
int dir_n = sizeof(dirs) / sizeof(dirs[0]);
|
||||
|
||||
char buf[1024];
|
||||
char buf[65536];
|
||||
char *bufp = buf;
|
||||
bufp += snprintf(bufp, sizeof(buf) - (bufp - buf), "tick %d\r\n", tick_id);
|
||||
if (a.dead)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue