1 | /* |
1 | /* |
2 | * This file is part of Deliantra, the Roguelike Realtime MMORPG. |
2 | * This file is part of Deliantra, the Roguelike Realtime MMORPG. |
3 | * |
3 | * |
4 | * Copyright (©) 2005,2006,2007,2008,2009,2010 Marc Alexander Lehmann / Robin Redeker / the Deliantra team |
4 | * Copyright (©) 2005,2006,2007,2008,2009,2010,2011 Marc Alexander Lehmann / Robin Redeker / the Deliantra team |
5 | * Copyright (©) 2002 Mark Wedel & Crossfire Development Team |
5 | * Copyright (©) 2002 Mark Wedel & Crossfire Development Team |
6 | * Copyright (©) 1992 Frank Tore Johansen |
6 | * Copyright (©) 1992 Frank Tore Johansen |
7 | * |
7 | * |
8 | * Deliantra is free software: you can redistribute it and/or modify it under |
8 | * Deliantra is free software: you can redistribute it and/or modify it under |
9 | * the terms of the Affero GNU General Public License as published by the |
9 | * the terms of the Affero GNU General Public License as published by the |
… | |
… | |
236 | { |
236 | { |
237 | int count = f.get_sint32 (); |
237 | int count = f.get_sint32 (); |
238 | |
238 | |
239 | for (int i = 1; i <= count; i++) |
239 | for (int i = 1; i <= count; i++) |
240 | { |
240 | { |
241 | char line [32]; |
241 | f.next_line (); f.get (pl->levhp [i]); |
242 | |
242 | f.next_line (); f.get (pl->levsp [i]); |
243 | fgets (line, 32, f); pl->levhp [i] = atoi (line); |
243 | f.next_line (); f.get (pl->levgrace[i]); |
244 | fgets (line, 32, f); pl->levsp [i] = atoi (line); |
|
|
245 | fgets (line, 32, f); pl->levgrace[i] = atoi (line); |
|
|
246 | } |
244 | } |
247 | } |
245 | } |
248 | break; |
246 | break; |
249 | } |
247 | } |
250 | |
248 | |