| 1042 | } |
| 1043 | |
| 1044 | void |
| 1045 | reset_utrap(boolean msg) |
| 1046 | { |
| 1047 | boolean was_Lev = (Levitation != 0), was_Fly = (Flying != 0); |
| 1048 | |
| 1049 | set_utrap(0, 0); |
| 1050 | |
| 1051 | if (msg) { |
| 1052 | if (!was_Lev && Levitation) |
| 1053 | float_up(); |
| 1054 | if (!was_Fly && Flying) |
| 1055 | You("can fly."); |
| 1056 | } |
| 1057 | } |
| 1058 | |
| 1059 | /* is trap type ttyp triggered by touching the floor? */ |
| 1060 | staticfn boolean |
no test coverage detected