]> git.pond.sub.org Git - empserver/commit
Clean up c_permit values of deity commands
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 18 Feb 2012 14:00:57 +0000 (15:00 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Sat, 25 Feb 2012 10:22:36 +0000 (11:22 +0100)
commit481d1dabe2547aba280ef391d945894a266c90bb
treeed8564f5621449fe584a0956d4735e8bcf2808dc
parent364b208f289d57b0324270bcca98e9e93e68eaa5
Clean up c_permit values of deity commands

A player may execute a command when his player->nstat has all the bits
in the command's c_permit.

Normal player commands require bit(2).  Command break requires bit(1),
and execute requires bit(5).  Deity commands require both bit(2) and
bit(3).  Works, because deities always have both bits set in nstat, as
they may execute normal player commands, too.  But it's a bit
confusing.  Change them to only require their own bit(3).
include/com.h
include/player.h
src/lib/player/init_nats.c