Small stylistic thing - our coding style generally prefers placing initializes for vars on the next line. So:
```
bool t_dirty;
t_dirty = true;
if (!MCString...)
  t_dirty = false;
```