mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-20 21:43:06 +01:00
Add documentation to functions
This commit is contained in:
@@ -1002,6 +1002,11 @@ void peep_check_cant_find_exit(rct_peep* peep){
|
||||
* start an action. Returns 1 if the correct destination
|
||||
* has not yet been reached. xy_distance is how close the
|
||||
* peep is to the target.
|
||||
*
|
||||
* @param x (ax)
|
||||
* @param y (cx)
|
||||
* @param distance (bp)
|
||||
* @param peep (esi)
|
||||
*/
|
||||
int peep_update_action(sint16* x, sint16* y, sint16* xy_distance, rct_peep* peep){
|
||||
RCT2_GLOBAL(0xF1AEF0, uint8) = peep->action_sprite_image_offset;
|
||||
|
||||
@@ -688,6 +688,8 @@ static int scenario_create_ducks()
|
||||
/**
|
||||
*
|
||||
* rct2: 0x006E37D2
|
||||
*
|
||||
* @return eax
|
||||
*/
|
||||
unsigned int scenario_rand()
|
||||
{
|
||||
|
||||
@@ -417,9 +417,11 @@ void sprite_misc_update_all()
|
||||
/**
|
||||
* Moves a sprite to a new location.
|
||||
* rct2: 0x0069E9D3
|
||||
* ax: x
|
||||
* cx: y
|
||||
* dx: z
|
||||
*
|
||||
* @param x (ax)
|
||||
* @param y (cx)
|
||||
* @param z (dx)
|
||||
* @param sprite (esi)
|
||||
*/
|
||||
void sprite_move(sint16 x, sint16 y, sint16 z, rct_sprite* sprite){
|
||||
if (x < 0 || y < 0 || x > 0x1FFF || y > 0x1FFF)
|
||||
|
||||
Reference in New Issue
Block a user