johanberntsson / PunyInform

A fast and compact library for writing text adventure games for the Z-machine running on 8-bit computers as well as other platforms.
MIT License
176 stars 17 forks source link

Code optimization in the PrintOrRun function #130

Closed auraes closed 2 months ago

auraes commented 2 months ago

I guess you forgot to replace print (string) p_obj.p_prop with print (string) _val in the PrintOrRun function (this saves a call_vs instruction).

fredrikr commented 2 months ago

Of course. Well spotted. Fixed.