Remove unnecessary call to newsym() in fov.cc
authorMartin Read <martin@blackswordsonics.com>
Wed, 19 Feb 2014 01:44:44 +0000 (01:44 +0000)
committerMartin Read <martin@blackswordsonics.com>
Wed, 19 Feb 2014 01:44:44 +0000 (01:44 +0000)
As part of the general crusade to stop game logic directly calling into
display-nc.cc (so that notify-local-tty.cc and display-nc.cc can be replaced
with something that has a completely different interaction paradigm e.g. a
network client), the call to newsym() in fov.cc has been removed.

It was, in any event, superfluous because the only call to compute_fov()
was immediately followed by a call to touch_back_buffer().

fov.cc

diff --git a/fov.cc b/fov.cc
index d542265..18730ac 100644 (file)
--- a/fov.cc
+++ b/fov.cc
@@ -78,7 +78,6 @@ static bool dflt_blk(Coord c)
 static bool mark_explored(Coord c, void *pvt)
 {
     lvl.set_flags_at(c, MAPFLAG_EXPLORED);
-    newsym(c);
     return true;
 }