| 817 | } |
| 818 | |
| 819 | void AddPlrMonstExper(int lvl, int exp, char pmask) |
| 820 | { |
| 821 | int totplrs, i, e; |
| 822 | |
| 823 | totplrs = 0; |
| 824 | for (i = 0; i < MAX_PLRS; i++) { |
| 825 | if ((1 << i) & pmask) { |
| 826 | totplrs++; |
| 827 | } |
| 828 | } |
| 829 | |
| 830 | if (totplrs) { |
| 831 | e = exp / totplrs; |
| 832 | if (pmask & (1 << myplr)) |
| 833 | AddPlrExperience(myplr, lvl, e); |
| 834 | } |
| 835 | } |
| 836 | |
| 837 | void InitPlayer(int pnum, BOOL FirstTime) |
| 838 | { |
no test coverage detected