shithub: orca

Download patch

ref: 3db00f74c78797166707980731082c21e57c1d1e
parent: 9726a85360686e7f1d0033c3e520d87c6273b8bc
author: cancel <cancel@cancel.fm>
date: Tue Dec 11 12:31:45 EST 2018

Remove unnecessary macro indirection

--- a/sim.c
+++ b/sim.c
@@ -272,7 +272,6 @@
 #define POKE(_delta_y, _delta_x, _glyph)                                       \
   gbuffer_poke_relative(gbuffer, height, width, y, x, _delta_y, _delta_x,      \
                         _glyph)
-#define BECOME(_glyph) gbuffer_poke(gbuffer, height, width, y, x, _glyph)
 #define STUN(_delta_y, _delta_x)                                               \
   mbuffer_poke_relative_flags_or(mbuffer, height, width, y, x, _delta_y,       \
                                  _delta_x, Mark_flag_sleep)
@@ -414,7 +413,7 @@
 
 BEGIN_SOLO_PHASE_0(bang)
   if (IS_AWAKE) {
-    BECOME('.');
+    gbuffer_poke(gbuffer, height, width, y, x, '.');
   }
 END_PHASE
 BEGIN_SOLO_PHASE_1(bang)