| 1027 | } |
| 1028 | |
| 1029 | void |
| 1030 | set_utrap(unsigned int tim, unsigned int typ) |
| 1031 | { |
| 1032 | /* if we get here through reset_utrap(), the caller of that might |
| 1033 | have already set u.utrap to 0 so this check won't be sufficient |
| 1034 | in that situation; caller will need to set context.botl itself */ |
| 1035 | if (!u.utrap ^ !tim) |
| 1036 | disp.botl = TRUE; |
| 1037 | |
| 1038 | u.utrap = tim; |
| 1039 | u.utraptype = tim ? typ : TT_NONE; |
| 1040 | |
| 1041 | float_vs_flight(); /* maybe block Lev and/or Fly */ |
| 1042 | } |
| 1043 | |
| 1044 | void |
| 1045 | reset_utrap(boolean msg) |
no test coverage detected