Miscellaneous gameplay fixes.