disable_commands.c
ds2.10/fluffos-2.16-ds05/testsuite/single/tests/efuns/disable_commands.c · 343 B
From the archive ds2.10.zip
Download the archive « Back to the archive contents
void do_tests() {
#ifndef __NO_ADD_ACTION__
object save_tp = this_player();
disable_commands();
ASSERT(!living(this_object()));
enable_commands();
ASSERT(living(this_object()));
disable_commands();
ASSERT(!living(this_object()));
if (save_tp)
evaluate(bind( (: enable_commands :), save_tp));
#endif
}