| 342 | } |
| 343 | |
| 344 | bool lgoal::Priority(int handle, char operation, int *value) { |
| 345 | if (!value) |
| 346 | return false; |
| 347 | |
| 348 | switch (operation) { |
| 349 | case LO_SET_SPECIFIED: |
| 350 | m_priority = *value; |
| 351 | m_modified = 1; |
| 352 | if (Game_mode & GM_MULTI && Netgame.local_role != LR_CLIENT) { |
| 353 | // send it off to the clients |
| 354 | SendMultiUpdate(handle); |
| 355 | } |
| 356 | return true; |
| 357 | break; |
| 358 | case LO_GET_SPECIFIED: |
| 359 | *value = m_priority; |
| 360 | return true; |
| 361 | break; |
| 362 | } |
| 363 | |
| 364 | return false; |
| 365 | } |
| 366 | |
| 367 | bool lgoal::GoalList(char operation, char *value) { |
| 368 | if (!value) |
no outgoing calls
no test coverage detected