# Two bugs

**URL:** <https://discourse.cataclysmdda.org/t/two-bugs/712>\
**Category:** The Garage\
**Created:** [April 7, 2013, 5:22am UTC](https://discourse.cataclysmdda.org/t/two-bugs/712 "2013-04-07T05:22:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![maseck](https://avatars.discourse-cdn.com/v4/letter/m/2bfe46/32.png) [@maseck](https://discourse.cataclysmdda.org/u/maseck)\
**Post date:** [April 7, 2013, 5:22am UTC](https://discourse.cataclysmdda.org/t/two-bugs/712/1 "2013-04-07T05:22:58Z")

</div>

repeated cancel\_activity\_query  
game.cpp – void game::mon\_info() – 3184-3196

[code] if (newseen \> mostseen) {  
if (u.activity.type == ACT\_REFILL\_VEHICLE)  
cancel\_activity\_query(“Monster Spotted!”);

cancel\_activity\_query(“Monster spotted!”);  
turnssincelastmon = 0;  
if (run\_mode == 1)  
run\_mode = 2; // Stop movement!  
} else if (autosafemode && newseen == 0) { // Auto-safemode  
turnssincelastmon++;  
if(turnssincelastmon \>= OPTIONS[OPT\_AUTOSAFEMODETURNS] && run\_mode == 0)  
run\_mode = 1;  
}[/code]  
If there is nothing flammable, player wastes some time.

`void iuse::lighter(game *g, player *p, item *it, bool t)
{
 int dirx, diry;
 g->draw();
 mvprintw(0, 0, "Light where?");
 get_direction(g, dirx, diry, input());
 if (dirx == -2) {
  g->add_msg_if_player(p,"Invalid direction.");
  it->charges++;
  return;
 }
 if (dirx == 0 && diry == 0) {
  g->add_msg_if_player(p, "You would set yourself on fire.");
  g->add_msg_if_player(p, "But you're already smokin' hot.");
  it->charges++;
  return;
 }
 p->moves -= 15;
 dirx += p->posx;
 diry += p->posy;
 if (g->m.flammable_items_at(dirx, diry)) {
  if (g->m.add_field(g, dirx, diry, fd_fire, 1))
   g->m.field_at(dirx, diry).age = 30;
 } else {
  g->add_msg_if_player(p,"There's nothing to light there.");
  it->charges++;
 }
}`
