ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/server/cfperl.xs
(Generate patch)

Comparing deliantra/server/server/cfperl.xs (file contents):
Revision 1.314 by root, Thu Jan 1 20:49:48 2009 UTC vs.
Revision 1.332 by root, Fri Nov 6 13:21:20 2009 UTC

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 (©) 2006,2007,2008 Marc Alexander Lehmann / Robin Redeker / the Deliantra team 4 * Copyright (©) 2006,2007,2008 Marc Alexander Lehmann / Robin Redeker / the Deliantra team
5 * Copyright (©) 2001-2005,2007 by Chachkoff Yann
6 * Copyright (©) 2006,2007 by Marc Lehmann <cf@schmorp.de> 5 * Copyright (©) 2006,2007 by Marc Lehmann <cf@schmorp.de>
7 * 6 *
8 * Deliantra is free software: you can redistribute it and/or modify 7 * Deliantra is free software: you can redistribute it and/or modify it under
9 * it under the terms of the GNU General Public License as published by 8 * the terms of the Affero GNU General Public License as published by the
10 * the Free Software Foundation, either version 3 of the License, or 9 * Free Software Foundation, either version 3 of the License, or (at your
11 * (at your option) any later version. 10 * option) any later version.
12 * 11 *
13 * This program is distributed in the hope that it will be useful, 12 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details. 15 * GNU General Public License for more details.
17 * 16 *
18 * You should have received a copy of the GNU General Public License 17 * You should have received a copy of the Affero GNU General Public License
19 * along with this program. If not, see <http://www.gnu.org/licenses/>. 18 * and the GNU General Public License along with this program. If not, see
19 * <http://www.gnu.org/licenses/>.
20 * 20 *
21 * The authors can be reached via e-mail to <support@deliantra.net> 21 * The authors can be reached via e-mail to <support@deliantra.net>
22 */ 22 */
23 23
24#include "autoconf.h" 24#include "autoconf.h"
71static int tick_pending; 71static int tick_pending;
72 72
73global gbl_ev; 73global gbl_ev;
74static AV *cb_global, *cb_attachable, *cb_object, *cb_player, *cb_client, *cb_type, *cb_map; 74static AV *cb_global, *cb_attachable, *cb_object, *cb_player, *cb_client, *cb_type, *cb_map;
75static SV *sv_runtime, *sv_tick_start, *sv_next_tick, *sv_now; 75static SV *sv_runtime, *sv_tick_start, *sv_next_tick, *sv_now;
76static AV *av_reflect;
76 77
77bitset<NUM_EVENT_TYPES> ev_want_event; 78bitset<NUM_EVENT_TYPES> ev_want_event;
78bitset<NUM_TYPES> ev_want_type; 79bitset<NUM_TYPES> ev_want_type;
79 80
80static HV 81static HV
88 *stash_cf_arch_wrap, 89 *stash_cf_arch_wrap,
89 *stash_cf_party_wrap, 90 *stash_cf_party_wrap,
90 *stash_cf_region_wrap, 91 *stash_cf_region_wrap,
91 *stash_cf_living_wrap; 92 *stash_cf_living_wrap;
92 93
94static SV
95 *cv_cf_do_invoke,
96 *cv_cf__can_merge,
97 *cv_cf_client_send_msg,
98 *cv_cf_tick,
99 *cv_cf_match_match;
100
93#ifndef newSVpv_utf8 101#ifndef newSVpv_utf8
94static inline SV * 102static inline SV *
95newSVpv_utf8 (const char *s) 103newSVpv_utf8 (const char *s)
96{ 104{
97 if (!s) 105 if (!s)
317 fprintf (stderr, "P %p\n", pl); 325 fprintf (stderr, "P %p\n", pl);
318 326
319 for_all_clients (ns) 327 for_all_clients (ns)
320 if (find_backref (ptr, ns)) 328 if (find_backref (ptr, ns))
321 fprintf (stderr, "C %p\n", ns); 329 fprintf (stderr, "C %p\n", ns);
322
323} 330}
324 331
325////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 332//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
326 333
327static SV * 334static SV *
381 388
382 return sv; 389 return sv;
383 } 390 }
384} 391}
385 392
393#if 0 // unused
386static void 394static void
387clearSVptr (SV *sv) 395clearSVptr (SV *sv)
388{ 396{
389 if (SvROK (sv)) 397 if (SvROK (sv))
390 sv = SvRV (sv); 398 sv = SvRV (sv);
391 399
392 hv_clear ((HV *)sv); 400 hv_clear ((HV *)sv);
393 sv_unmagic (sv, PERL_MAGIC_ext); 401 sv_unmagic (sv, PERL_MAGIC_ext);
394} 402}
403#endif
395 404
396static long 405static long
397SvPTR (SV *sv, const char *klass) 406SvPTR (SV *sv, const char *klass)
398{ 407{
399 if (!sv_derived_from (sv, klass)) 408 if (!sv_derived_from (sv, klass))
919 XPUSHs (sv_2mortal (newSVdt_va (ap, dt))); 928 XPUSHs (sv_2mortal (newSVdt_va (ap, dt)));
920 } 929 }
921 930
922 va_end (ap); 931 va_end (ap);
923 932
924 CALL_CALL ("cf::do_invoke", G_SCALAR); 933 CALL_CALL (cv_cf_do_invoke, G_SCALAR);
925 count = count > 0 ? POPi : 0; 934 count = count > 0 ? POPi : 0;
926 935
927 CALL_END; 936 CALL_END;
928 937
929 return count; 938 return count;
970 979
971 dSP; 980 dSP;
972 981
973 PUSHMARK (SP); 982 PUSHMARK (SP);
974 PUTBACK; 983 PUTBACK;
975 call_pv ("cf::tick", G_DISCARD | G_VOID); 984 call_pvsv (cv_cf_tick, G_DISCARD | G_VOID);
976 985
977 SvNV_set (sv_next_tick, get_next_tick ()); SvNOK_only (sv_next_tick); 986 SvNV_set (sv_next_tick, get_next_tick ()); SvNOK_only (sv_next_tick);
978} 987}
979 988
980void 989void
1010 CALL_BEGIN (4); 1019 CALL_BEGIN (4);
1011 CALL_ARG (ns); 1020 CALL_ARG (ns);
1012 CALL_ARG (type); 1021 CALL_ARG (type);
1013 CALL_ARG_SV (newSVpv_utf8 (msg)); 1022 CALL_ARG_SV (newSVpv_utf8 (msg));
1014 CALL_ARG (color); 1023 CALL_ARG (color);
1015 CALL_CALL ("cf::client::send_msg", G_VOID); 1024 CALL_CALL (cv_cf_client_send_msg, G_VOID);
1016 CALL_END; 1025 CALL_END;
1017} 1026}
1018 1027
1019int 1028int
1020cfperl_can_merge (object *ob1, object *ob2) 1029cfperl_can_merge (object *ob1, object *ob2)
1022 int can; 1031 int can;
1023 1032
1024 CALL_BEGIN (2); 1033 CALL_BEGIN (2);
1025 CALL_ARG (ob1); 1034 CALL_ARG (ob1);
1026 CALL_ARG (ob2); 1035 CALL_ARG (ob2);
1027 CALL_CALL ("cf::_can_merge", G_SCALAR); 1036 CALL_CALL (cv_cf__can_merge, G_SCALAR);
1028 can = count && SvTRUE (TOPs); 1037 can = count && SvTRUE (TOPs);
1029 CALL_END; 1038 CALL_END;
1030 1039
1031 return can; 1040 return can;
1041}
1042
1043void
1044cfperl_mapscript_activate (object *ob, int state, object *activator, object *originator)
1045{
1046 CALL_BEGIN (4);
1047 CALL_ARG (ob);
1048 CALL_ARG (state);
1049 CALL_ARG (activator);
1050 CALL_ARG (originator);
1051 CALL_CALL ("cf::mapscript::activate", G_VOID);
1052 CALL_END;
1032} 1053}
1033 1054
1034player * 1055player *
1035player::find (const char *name) 1056player::find (const char *name)
1036{ 1057{
1176 CALL_CALL ("cf::_log_backtrace", G_VOID); 1197 CALL_CALL ("cf::_log_backtrace", G_VOID);
1177 CALL_END; 1198 CALL_END;
1178#endif 1199#endif
1179} 1200}
1180 1201
1202bool
1203is_match_expr (const char *expr)
1204{
1205 return !strncmp (expr, "match ", sizeof ("match ") - 1);
1206}
1207
1208bool
1209match (const char *expr, object *ob, object *self, object *source, object *originator)
1210{
1211 if (!strncmp (expr, "match ", sizeof ("match ") - 1))
1212 expr += sizeof ("match ") - 1;
1213
1214 CALL_BEGIN (5);
1215 CALL_ARG (expr);
1216 CALL_ARG (ob);
1217 CALL_ARG (self);
1218 CALL_ARG (source);
1219 CALL_ARG (originator);
1220 CALL_CALL (cv_cf_match_match, G_SCALAR);
1221
1222 bool matched = count && SvTRUE (TOPs);
1223
1224 CALL_END;
1225
1226 return matched;
1227}
1228
1229object *
1230match_one (const char *expr, object *ob, object *self, object *source, object *originator)
1231{
1232 if (!strncmp (expr, "match ", sizeof ("match ") - 1))
1233 expr += sizeof ("match ") - 1;
1234
1235 CALL_BEGIN (5);
1236 CALL_ARG (expr);
1237 CALL_ARG (ob);
1238 CALL_ARG (self);
1239 CALL_ARG (source);
1240 CALL_ARG (originator);
1241 CALL_CALL (cv_cf_match_match, G_ARRAY);
1242
1243 object *one = 0;
1244
1245 if (count)
1246 sv_to (TOPs, one);
1247
1248 CALL_END;
1249
1250 return one;
1251}
1252
1181///////////////////////////////////////////////////////////////////////////// 1253/////////////////////////////////////////////////////////////////////////////
1182 1254
1183struct EVAPI *evapi::GEVAPI; 1255struct EVAPI *evapi::GEVAPI;
1184struct CoroAPI *coroapi::GCoroAPI; 1256struct CoroAPI *coroapi::GCoroAPI;
1185 1257
1217 if (active) start (); 1289 if (active) start ();
1218 } 1290 }
1219} 1291}
1220 1292
1221static void 1293static void
1222_connect_to_perl () 1294_connect_to_perl_1 ()
1223{ 1295{
1224 stash_cf = gv_stashpv ("cf", 1); 1296 stash_cf = gv_stashpv ("cf", 1);
1225 1297
1226 stash_cf_object_wrap = gv_stashpv ("cf::object::wrap", 1); 1298 stash_cf_object_wrap = gv_stashpv ("cf::object::wrap", 1);
1227 stash_cf_object_player_wrap = gv_stashpv ("cf::object::player::wrap", 1); 1299 stash_cf_object_player_wrap = gv_stashpv ("cf::object::player::wrap", 1);
1246 cb_client = get_av ("cf::CB_CLIENT", 1); 1318 cb_client = get_av ("cf::CB_CLIENT", 1);
1247 cb_type = get_av ("cf::CB_TYPE" , 1); 1319 cb_type = get_av ("cf::CB_TYPE" , 1);
1248 cb_map = get_av ("cf::CB_MAP" , 1); 1320 cb_map = get_av ("cf::CB_MAP" , 1);
1249} 1321}
1250 1322
1323static void
1324_connect_to_perl_2 ()
1325{
1326 cv_cf_do_invoke = (SV *)get_cv ("cf::do_invoke" , 0); assert (cv_cf_do_invoke);
1327 cv_cf__can_merge = (SV *)get_cv ("cf::_can_merge" , 0); assert (cv_cf__can_merge);
1328 cv_cf_client_send_msg = (SV *)get_cv ("cf::client::send_msg", 0); assert (cv_cf_client_send_msg);
1329 cv_cf_tick = (SV *)get_cv ("cf::tick" , 0); assert (cv_cf_tick);
1330 cv_cf_match_match = (SV *)get_cv ("cf::match::match" , 0); assert (cv_cf_match_match);
1331}
1332
1251MODULE = cf PACKAGE = cf PREFIX = cf_ 1333MODULE = cf PACKAGE = cf PREFIX = cf_
1252 1334
1253BOOT: 1335BOOT:
1254{ 1336{
1255 I_EV_API (PACKAGE); evapi::GEVAPI = GEVAPI; 1337 I_EV_API (PACKAGE); evapi::GEVAPI = GEVAPI;
1256 I_CORO_API (PACKAGE); coroapi::GCoroAPI = GCoroAPI; 1338 I_CORO_API (PACKAGE); coroapi::GCoroAPI = GCoroAPI;
1257 1339
1258 _connect_to_perl (); 1340 _connect_to_perl_1 ();
1259 1341
1260 newCONSTSUB (stash_cf, "VERSION", newSVpv (VERSION, sizeof (VERSION) - 1)); 1342 newCONSTSUB (stash_cf, "VERSION", newSVpv (VERSION, sizeof (VERSION) - 1));
1261 1343
1262 //{ 1344 //{
1263 // require_pv ("Time::HiRes"); 1345 // require_pv ("Time::HiRes");
1307 const_iv (MOOD_FLOOR) const_iv (EXIT) const_iv (ENCOUNTER) const_iv (SHOP_FLOOR) 1389 const_iv (MOOD_FLOOR) const_iv (EXIT) const_iv (ENCOUNTER) const_iv (SHOP_FLOOR)
1308 const_iv (SHOP_MAT) const_iv (RING) const_iv (FLOOR) const_iv (FLESH) 1390 const_iv (SHOP_MAT) const_iv (RING) const_iv (FLOOR) const_iv (FLESH)
1309 const_iv (INORGANIC) const_iv (SKILL_TOOL) const_iv (LIGHTER) const_iv (BUILDABLE_WALL) 1391 const_iv (INORGANIC) const_iv (SKILL_TOOL) const_iv (LIGHTER) const_iv (BUILDABLE_WALL)
1310 const_iv (MISC_OBJECT) const_iv (LAMP) const_iv (DUPLICATOR) const_iv (SPELLBOOK) 1392 const_iv (MISC_OBJECT) const_iv (LAMP) const_iv (DUPLICATOR) const_iv (SPELLBOOK)
1311 const_iv (CLOAK) const_iv (SPINNER) const_iv (GATE) const_iv (BUTTON) 1393 const_iv (CLOAK) const_iv (SPINNER) const_iv (GATE) const_iv (BUTTON)
1312 const_iv (CF_HANDLE) const_iv (HOLE) const_iv (TRAPDOOR) const_iv (SIGN) 1394 const_iv (T_HANDLE) const_iv (HOLE) const_iv (TRAPDOOR) const_iv (SIGN)
1313 const_iv (BOOTS) const_iv (GLOVES) const_iv (SPELL) const_iv (SPELL_EFFECT) 1395 const_iv (BOOTS) const_iv (GLOVES) const_iv (SPELL) const_iv (SPELL_EFFECT)
1314 const_iv (CONVERTER) const_iv (BRACERS) const_iv (POISONING) const_iv (SAVEBED) 1396 const_iv (CONVERTER) const_iv (BRACERS) const_iv (POISONING) const_iv (SAVEBED)
1315 const_iv (WAND) const_iv (SCROLL) const_iv (DIRECTOR) const_iv (GIRDLE) 1397 const_iv (WAND) const_iv (SCROLL) const_iv (DIRECTOR) const_iv (GIRDLE)
1316 const_iv (FORCE) const_iv (POTION_EFFECT) const_iv (EVENT_CONNECTOR) const_iv (CLOSE_CON) 1398 const_iv (FORCE) const_iv (POTION_EFFECT) const_iv (EVENT_CONNECTOR) const_iv (CLOSE_CON)
1317 const_iv (CONTAINER) const_iv (ARMOUR_IMPROVER) const_iv (WEAPON_IMPROVER) const_iv (SKILLSCROLL) 1399 const_iv (CONTAINER) const_iv (ARMOUR_IMPROVER) const_iv (WEAPON_IMPROVER) const_iv (SKILLSCROLL)
1318 const_iv (DEEP_SWAMP) const_iv (IDENTIFY_ALTAR) const_iv (MENU) const_iv (RUNE) 1400 const_iv (DEEP_SWAMP) const_iv (IDENTIFY_ALTAR) const_iv (MENU) const_iv (RUNE)
1319 const_iv (TRAP) const_iv (POWER_CRYSTAL) const_iv (CORPSE) const_iv (DISEASE) 1401 const_iv (TRAP) const_iv (POWER_CRYSTAL) const_iv (CORPSE) const_iv (DISEASE)
1320 const_iv (SYMPTOM) const_iv (BUILDER) const_iv (MATERIAL) const_iv (ITEM_TRANSFORMER) 1402 const_iv (SYMPTOM) const_iv (BUILDER) const_iv (MATERIAL) const_iv (ITEM_TRANSFORMER)
1403 const_iv (MAPSCRIPT) const_iv (SAFE_GROUND)
1321 1404
1322 const_iv (NUM_TYPES) const_iv (NUM_SUBTYPES) 1405 const_iv (NUM_TYPES) const_iv (NUM_SUBTYPES)
1323 1406
1324 const_iv (ST_BD_BUILD) const_iv (ST_BD_REMOVE) 1407 const_iv (ST_BD_BUILD) const_iv (ST_BD_REMOVE)
1325 const_iv (ST_MAT_FLOOR) const_iv (ST_MAT_WALL) const_iv (ST_MAT_ITEM) 1408 const_iv (ST_MAT_FLOOR) const_iv (ST_MAT_WALL) const_iv (ST_MAT_ITEM)
1534 av_push (event, newSVpv ((char *)eiv->name + eiv->skip, 0)); 1617 av_push (event, newSVpv ((char *)eiv->name + eiv->skip, 0));
1535 av_push (event, newSViv (eiv->klass)); 1618 av_push (event, newSViv (eiv->klass));
1536 av_store (av, eiv->iv, newRV_noinc ((SV *)event)); 1619 av_store (av, eiv->iv, newRV_noinc ((SV *)event));
1537 newCONSTSUB (stash_cf, (char *)eiv->name, newSViv (eiv->iv)); 1620 newCONSTSUB (stash_cf, (char *)eiv->name, newSViv (eiv->iv));
1538 } 1621 }
1622
1623 // used by autogenerated BOOT sections from genacc
1624 av_reflect = get_av ("cf::REFLECT", 1);
1539} 1625}
1540 1626
1541void _gv_clear (SV *gv) 1627void _gv_clear (SV *gv)
1542 CODE: 1628 CODE:
1543 assert (SvTYPE (gv) == SVt_PVGV); 1629 assert (SvTYPE (gv) == SVt_PVGV);
1550 f (GvGP (gv)->gp_cv); 1636 f (GvGP (gv)->gp_cv);
1551 GvCVGEN (gv) = 0; 1637 GvCVGEN (gv) = 0;
1552 GvMULTI_off (gv); 1638 GvMULTI_off (gv);
1553# undef f 1639# undef f
1554 1640
1555void _connect_to_perl () 1641void _connect_to_perl_1 ()
1642
1643void _connect_to_perl_2 ()
1556 1644
1557void _recalc_want () 1645void _recalc_want ()
1558 1646
1559# not used by default anymore 1647# not used by default anymore
1560void _global_reattach () 1648void _global_reattach ()
2078 CODE: 2166 CODE:
2079 player_apply_below (op); 2167 player_apply_below (op);
2080 2168
2081int cast_heal (object *op, object *caster, object *spell, int dir = 0) 2169int cast_heal (object *op, object *caster, object *spell, int dir = 0)
2082 2170
2171int casting_level (object *caster, object *spell)
2172
2083int pay_item (object *op, object *buyer) 2173int pay_item (object *op, object *buyer)
2084 CODE: 2174 CODE:
2085 RETVAL = pay_for_item (op, buyer); 2175 RETVAL = pay_for_item (op, buyer);
2086 OUTPUT: RETVAL 2176 OUTPUT: RETVAL
2087 2177
2131 2221
2132int kill_object (object *op, int dam = 0, object *hitter = 0, int type = AT_PHYSICAL) 2222int kill_object (object *op, int dam = 0, object *hitter = 0, int type = AT_PHYSICAL)
2133 2223
2134int calc_skill_exp (object *who, object *op, object *skill); 2224int calc_skill_exp (object *who, object *op, object *skill);
2135 2225
2136void push_button (object *op); 2226void push_button (object *op, object *originator);
2137 2227
2138void use_trigger (object *op); 2228void use_trigger (object *op, object *originator);
2139
2140void add_button_link (object *button, maptile *map, int connected);
2141
2142void remove_button_link (object *op);
2143 2229
2144void handle_apply_yield (object *op); 2230void handle_apply_yield (object *op);
2231
2232int convert_item (object *item, object *converter);
2145 2233
2146 2234
2147MODULE = cf PACKAGE = cf::object PREFIX = cf_ 2235MODULE = cf PACKAGE = cf::object PREFIX = cf_
2148 2236
2149# no clean way to get an object from an archetype - stupid idiotic 2237# no clean way to get an object from an archetype - stupid idiotic
2162object *insert_ob_in_map_at (object *ob, maptile *where, object_ornull *orig, int flag, int x, int y) 2250object *insert_ob_in_map_at (object *ob, maptile *where, object_ornull *orig, int flag, int x, int y)
2163 PROTOTYPE: $$$$$$ 2251 PROTOTYPE: $$$$$$
2164 CODE: 2252 CODE:
2165{ 2253{
2166 RETVAL = insert_ob_in_map_at (ob, where, orig, flag, x, y); 2254 RETVAL = insert_ob_in_map_at (ob, where, orig, flag, x, y);
2255
2256 if (RETVAL->destroyed ())
2257 RETVAL = 0;
2167} 2258}
2168 2259
2169shstr 2260shstr
2170object::kv_get (shstr key) 2261object::kv_get (shstr key)
2171 2262
2355void 2446void
2356adjust_daylight () 2447adjust_daylight ()
2357 CODE: 2448 CODE:
2358 maptile::adjust_daylight (); 2449 maptile::adjust_daylight ();
2359 2450
2451int
2452outdoor_darkness (int darkness = 0)
2453 CODE:
2454 RETVAL = maptile::outdoor_darkness;
2455 if (items)
2456 maptile::outdoor_darkness = darkness;
2457 OUTPUT:
2458 RETVAL
2459
2360void 2460void
2361maptile::instantiate () 2461maptile::instantiate ()
2362 2462
2363maptile *new () 2463maptile *new ()
2364 PROTOTYPE: 2464 PROTOTYPE:
2472 } 2572 }
2473 2573
2474int out_of_map (maptile *map, int x, int y) 2574int out_of_map (maptile *map, int x, int y)
2475 2575
2476void 2576void
2477trigger (maptile *map, long connection, bool state = true) 2577find_link (maptile *map, shstr_tmp connection)
2478 CODE:
2479 activate_connection (map, connection, state);
2480
2481void
2482get_connection (maptile *map, long connection)
2483 PPCODE: 2578 PPCODE:
2484 oblinkpt *obp = get_connection_links (map, connection); 2579 if (oblinkpt *obp = map->find_link (connection))
2485 if (obp)
2486 for (objectlink *ol = obp->link; ol; ol = ol->next) 2580 for (objectlink *ol = obp->link; ol; ol = ol->next)
2487 XPUSHs (sv_2mortal (to_sv ((object *)ol->ob))); 2581 XPUSHs (sv_2mortal (to_sv ((object *)ol->ob)));
2488 2582
2489void 2583void
2490get_map_flags (maptile *map, int x, int y) 2584get_map_flags (maptile *map, int x, int y)
2579 case 6: RETVAL = newSVuv (ms.move_on ); break; 2673 case 6: RETVAL = newSVuv (ms.move_on ); break;
2580 case 7: RETVAL = newSVuv (ms.move_off ); break; 2674 case 7: RETVAL = newSVuv (ms.move_off ); break;
2581 } 2675 }
2582} 2676}
2583 OUTPUT: RETVAL 2677 OUTPUT: RETVAL
2584
2585void fix_walls (maptile *map, int x, int y)
2586
2587void fix_walls_around (maptile *map, int x, int y)
2588 2678
2589# worst xs function of my life 2679# worst xs function of my life
2590bool 2680bool
2591_create_random_map (\ 2681_create_random_map (\
2592 maptile *self,\ 2682 maptile *self,\

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines