Code:
Program received signal SIGINT, Interrupt. Rand_div (m=37) at z-rand.c:203 203 if (r < m) break; (gdb) bt #0 Rand_div (m=37) at z-rand.c:203 #1 0x00000000004a0cb0 in pick_trap (feat=1, trap_level=0) at trap.c:185 #2 0x00000000004a0e7e in place_trap (c=0xc849b8, y=9, x=54, t_idx=-1, trap_level=0) at trap.c:238 #3 0x0000000000409059 in square_add_trap (c=0xc849b8, y=9, x=54) at cave-square.c:935 #4 0x0000000000492b32 in project_feature_handler_MAKE_TRAP (context=0x7fffffffb9d0) at project-feat.c:286 #5 0x000000000049373c in project_f (origin=..., r=1, y=9, x=54, dam=0, typ=31) at project-feat.c:694 #6 0x00000000004920f4 in project (origin=..., rad=1, y=9, x=54, dam=0, typ=31, flg=244, degrees_of_arc=0, diameter_of_source=0 '\000', obj=0xbeff88) at project.c:1008 #7 0x000000000041172d in project_touch (dam=0, typ=31, aware=false, obj=0xbeff88) at effects.c:158 #8 0x0000000000418c24 in effect_handler_TOUCH (context=0x7fffffffd910) at effects.c:3789 #9 0x000000000041a001 in effect_do (effect=0x8aed58, origin=..., obj=0xbeff88, ident=0x7fffffffd9f3, aware=false, dir=5, beam=0, boost=80) at effects.c:4487 #10 0x000000000040f95d in use_aux (cmd=0x74bed0 <cmd_queue+2288>, obj=0xbeff88, use=USE_SINGLE, snd=0) at cmd-obj.c:505 #11 0x000000000040fcbb in do_cmd_read_scroll (cmd=0x74bed0 <cmd_queue+2288>) at cmd-obj.c:602 #12 0x000000000040dabd in process_command (ctx=CMD_GAME, cmd=0x74bed0 <cmd_queue+2288>) at cmd-core.c:222 #13 0x000000000040dbb6 in cmdq_pop (c=CMD_GAME) at cmd-core.c:250 #14 0x000000000041bf3e in process_player () at game-world.c:666 #15 0x000000000041c1c9 in run_game_loop () at game-world.c:761 #16 0x00000000004ae7cf in play_game (new_game=false) at ui-game.c:433 #17 0x00000000004e6b7d in main (argc=1, argv=0x7fffffffdc48) at main.c:524 (gdb)
Code:
>|195 if (kind->min_depth > trap_level) continue;
Code:
(gdb) print trap_level $6 = 0 (gdb) print *kind $7 = {name = 0x87e568 "dart trap", text = 0x87e3d8 "A trap which shoots damaging darts.", desc = 0x87e758 "dexterity loss dart", msg = 0x0, msg_good = 0x87e858 "A small dart barely misses you.", msg_bad = 0x87e668 "A small dart hits you!", msg_xtra = 0x0, next = 0x8822e8, tidx = 17, d_attr = 4 '\004', d_char = 94 L'^', rarity = 0, min_depth = 6, max_num = 0, flags = "\022\004", save_flags = "\000\000\000\000", effect = 0x87e698, effect_xtra = 0x0} (gdb)
Leave a comment: