| 863 | |
| 864 | |
| 865 | int SimCmdMonsterDirection(ARGS) |
| 866 | { |
| 867 | int dir; |
| 868 | SimSprite *sprite; |
| 869 | |
| 870 | if (argc != 3) { |
| 871 | return (TCL_ERROR); |
| 872 | } |
| 873 | |
| 874 | if ((Tcl_GetInt(interp, argv[2], &dir) != TCL_OK) || |
| 875 | (dir < -1) || (dir > 7)) { |
| 876 | return (TCL_ERROR); |
| 877 | } |
| 878 | if ((sprite = GetSprite(GOD)) == NULL) { |
| 879 | MakeMonster(); |
| 880 | if ((sprite = GetSprite(GOD)) == NULL) { |
| 881 | return (TCL_ERROR); |
| 882 | } |
| 883 | } |
| 884 | sprite->control = dir; |
| 885 | |
| 886 | return (TCL_OK); |
| 887 | } |
| 888 | |
| 889 | |
| 890 | int SimCmdTile(ARGS) |
nothing calls this directly
no test coverage detected