Fix init errors, improve antihack

Add True value checking, change all true loops to 1 == 1 (1 cannot be
overwritten).

This commit also fixes an error with the latest beta patches.
Merge pull request #1085 from icomrade/master

Fix init errors, improve antihack