| 466 | } |
| 467 | |
| 468 | void Entity_SetSkin(struct Entity* e, const cc_string* skin) { |
| 469 | cc_string tmp; char tmpBuffer[STRING_SIZE]; |
| 470 | DeleteSkin(e); |
| 471 | |
| 472 | if (Utils_IsUrlPrefix(skin)) { |
| 473 | tmp = *skin; |
| 474 | e->NonHumanSkin = true; |
| 475 | } else { |
| 476 | String_InitArray(tmp, tmpBuffer); |
| 477 | String_AppendColorless(&tmp, skin); |
| 478 | e->NonHumanSkin = false; |
| 479 | } |
| 480 | String_CopyToRawArray(e->SkinRaw, &tmp); |
| 481 | } |
| 482 | |
| 483 | void Entity_LerpAngles(struct Entity* e, float t) { |
| 484 | struct EntityLocation* prev = &e->prev; |
no test coverage detected