… | |
… | |
2325 | * There really isn't any adjustments we make. |
2325 | * There really isn't any adjustments we make. |
2326 | */ |
2326 | */ |
2327 | int |
2327 | int |
2328 | write_mark (object *op, object *spell, const char *msg) |
2328 | write_mark (object *op, object *spell, const char *msg) |
2329 | { |
2329 | { |
2330 | char rune[HUGE_BUF]; |
|
|
2331 | object *tmp; |
|
|
2332 | |
|
|
2333 | if (!msg || msg[0] == 0) |
2330 | if (!msg || msg[0] == 0) |
2334 | { |
2331 | { |
2335 | new_draw_info (NDI_UNIQUE, 0, op, "Write what?"); |
2332 | new_draw_info (NDI_UNIQUE, 0, op, "Write what?"); |
2336 | return 0; |
2333 | return 0; |
2337 | } |
2334 | } |
… | |
… | |
2340 | { |
2337 | { |
2341 | new_draw_info (NDI_UNIQUE, 0, op, "Trying to cheat are we?"); |
2338 | new_draw_info (NDI_UNIQUE, 0, op, "Trying to cheat are we?"); |
2342 | LOG (llevInfo, "write_rune: player %s tried to write bogus rune %s\n", &op->name, msg); |
2339 | LOG (llevInfo, "write_rune: player %s tried to write bogus rune %s\n", &op->name, msg); |
2343 | return 0; |
2340 | return 0; |
2344 | } |
2341 | } |
|
|
2342 | |
2345 | if (!spell->other_arch) |
2343 | if (!spell->other_arch) |
2346 | return 0; |
2344 | return 0; |
|
|
2345 | |
2347 | tmp = arch_to_object (spell->other_arch); |
2346 | object *tmp = arch_to_object (spell->other_arch); |
2348 | |
|
|
2349 | snprintf (rune, sizeof (rune), "%s\n", msg); |
|
|
2350 | |
2347 | |
2351 | tmp->race = op->name; /*Save the owner of the rune */ |
2348 | tmp->race = op->name; /*Save the owner of the rune */ |
2352 | tmp->msg = rune; |
2349 | tmp->msg = msg; |
2353 | |
2350 | |
2354 | tmp->insert_at (op, op, INS_BELOW_ORIGINATOR); |
2351 | tmp->insert_at (op, op, INS_BELOW_ORIGINATOR); |
|
|
2352 | |
2355 | return 1; |
2353 | return 1; |
2356 | } |
2354 | } |
|
|
2355 | |