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 (©) 2017,2018 Marc Alexander Lehmann / the Deliantra team |
4 | * Copyright (©) 2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016 Marc Alexander Lehmann / Robin Redeker / the Deliantra team |
5 | * Copyright (©) 2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016 Marc Alexander Lehmann / Robin Redeker / the Deliantra team |
5 | * Copyright (©) 1994-2004 Crossfire Development Team (restored, original file without copyright notice) |
6 | * Copyright (©) 1994-2004 Crossfire Development Team (restored, original file without copyright notice) |
6 | * |
7 | * |
7 | * 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 |
8 | * 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 |
… | |
… | |
58 | |
59 | |
59 | return surround_index; |
60 | return surround_index; |
60 | } |
61 | } |
61 | |
62 | |
62 | /* actually make the maze: we work by a reduction process: |
63 | /* actually make the maze: we work by a reduction process: |
63 | * first we make everything a wall, then we remove areas to make rooms |
64 | * first we make everything a wall, then we remove areas to make rooms |
64 | */ |
65 | */ |
65 | void |
66 | void |
66 | roguelike_layout_gen (layout &maze, int options) |
67 | roguelike_layout_gen (layout &maze, int options) |
67 | { |
68 | { |
68 | int i, j; |
69 | int i, j; |