Fix update of thing sprites in map editor

- Don't update the sprites only if drawtype is TDT_SPRITE, because it
prevents updates for square + sprite and framed sprites modes.
- Drawing one updated sprite updates the update time, so the next
updated sprites wouldn't be updated.
- Moving things around would draw the wrong thing sprites because the
code confused the selection number with the thing number.