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 Marc Alexander Lehmann / Robin Redeker / the Deliantra team |
4 | * Copyright (©) 2005,2006,2007,2008 Marc Alexander Lehmann / Robin Redeker / the Deliantra team |
5 | * Copyright (©) 2002-2003,2007 Mark Wedel & Crossfire Development Team |
5 | * Copyright (©) 2002-2003,2007 Mark Wedel & Crossfire Development Team |
6 | * Copyright (©) 1992,2007 Frank Tore Johansen |
6 | * Copyright (©) 1992,2007 Frank Tore Johansen |
7 | * |
7 | * |
8 | * Deliantra is free software: you can redistribute it and/or modify |
8 | * Deliantra is free software: you can redistribute it and/or modify |
9 | * it under the terms of the GNU General Public License as published by |
9 | * it under the terms of the GNU General Public License as published by |
… | |
… | |
30 | std::vector<animation> animations; |
30 | std::vector<animation> animations; |
31 | |
31 | |
32 | void |
32 | void |
33 | animation::resize (int new_size) |
33 | animation::resize (int new_size) |
34 | { |
34 | { |
35 | sfree <faceidx> (faces, num_animations); |
35 | sfree<faceidx> (faces, num_animations); |
36 | num_animations = new_size; |
36 | num_animations = new_size; |
37 | faces = salloc<faceidx> (num_animations); |
37 | faces = salloc<faceidx> (num_animations); |
38 | } |
38 | } |
39 | |
39 | |
40 | animation & |
40 | animation & |