--- deliantra/server/include/book.h 2008/05/06 16:55:25 1.8 +++ deliantra/server/include/book.h 2012/01/03 11:25:31 1.14 @@ -1,20 +1,21 @@ /* * This file is part of Deliantra, the Roguelike Realtime MMORPG. * - * Copyright (©) 2005,2006,2007,2008 Marc Alexander Lehmann / Robin Redeker / the Deliantra team + * Copyright (©) 2005,2006,2007,2008,2009,2010,2011,2012 Marc Alexander Lehmann / Robin Redeker / the Deliantra team * - * Deliantra is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. + * Deliantra is free software: you can redistribute it and/or modify it under + * the terms of the Affero GNU General Public License as published by the + * Free Software Foundation, either version 3 of the License, or (at your + * option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * You should have received a copy of the Affero GNU General Public License + * and the GNU General Public License along with this program. If not, see + * . * * The authors can be reached via e-mail to */ @@ -27,12 +28,12 @@ /* Message buf size. If this is changed, keep in mind that big strings * may be unreadable by the player as the tail of the message * can scroll over the beginning (as of v0.92.2). - * Note that the book messages are stored in the msg buf, - * which is limited by 'HUGE_BUF' in the loader. */ #ifndef BOOK_H #define BOOK_H -#define BOOK_BUF HUGE_BUF-10 + +/* try not to create books much larger than this */ +#define BOOK_BUF 2000 /* if little books arent getting enough text generated, enlarge this */ @@ -44,7 +45,7 @@ * mesg buffer exceed the max. size (BOOK_BUF) */ #define BOOKSIZE(xyz) BASE_BOOK_BUF+((xyz)->weight/10)>BOOK_BUF? \ - BOOK_BUF:BASE_BOOK_BUF+((xyz)->weight/10); + BOOK_BUF:BASE_BOOK_BUF+((xyz)->weight/10) struct readable_message_type {