mirror of
https://github.com/zeldaret/tww.git
synced 2026-06-01 09:47:24 -04:00
d945c14cac
* Initial Progress Basic functions at 100% matching 100% Matching: - `daShip_Draw` - `daShip_Execute` - `daShip_IsDelete` - `daShip_Delete` - `daShip_createHeap` - `daShip_Create` * implemented `getJointPos` inlines in `daTornado_c` needed for d_a_ship * implemented `Center()` inline in `dCamera_c` needed for d_a_ship * added `setTranslationX` inline to `J3DTexMtx` needed for match in d_a_ship * parameters set to `const` for certain inlines in `m_Do_mtx.h` * added `dComIfGp_onMenuCollect` inline * changed `shipSpecialDemoStart` return type to `BOOL` * added member functions to `dPa_waveEcallBack`, `dPa_splashEcallBack `, `dPa_trackEcallBack` also modified member type of `mRotMtx` of `dPa_waveEcallBack` and `mPos` of `dPa_trackEcallBack` * added member to `daGrid_c` that is used in d_a_ship * added `mDoAud_setShipSailState` and `mDoAud_shipCruiseSePlay` inline functions * added `fopAcM_seenPlayerAngleY` inline * d_a_ship mostly matching approx. 90% matching, mostly regalloc issues. , `checkNextMode`, `setRopePos`, `setHeadAnm`, and `execute` need to have their logic fixer * replace `unknown_inline_TODO ` from `daShip_c` with `checkForceMove` * .data match * .rodata matching * more inline return type changes from `bool` to `BOOL` Also changed the array size of `mPlayerStatus` * implemented `force_calc_wind_rel_angle` inline in `daGrid_c` * fix `d_a_ship_static` * fixed `getEmitterAxis`, might need review but works for now * more progress * reverted change to `getEmitterAxis`, moved casts to function call in `dPa_waveEcallBack::executeAfter` * more progress * change return types of certain inlines from `BOOL` to `u32` `dComIfGp_checkCameraAttentionStatus`, `dComIfGp_checkPlayerStatus0`, `dComIfGp_checkPlayerStatus1` needed for match in d_a_ship * fixed memory addresses in `daGrid_c` * more progress * resolving symbols * Initial PR changes * Removed unnecessary cast * replaced instances of `PSVECSquareMag` with corresponding inline functions * update memory layout in `d_a_grid` for consistency * More PR changes `checkNextMode` and `procZevDemo` now at 100% matching
27 lines
557 B
C++
27 lines
557 B
C++
/**
|
|
* d_a_ship_static.cpp
|
|
* King of Red Lions - Static
|
|
*/
|
|
|
|
#include "d/actor/d_a_ship.h"
|
|
|
|
/* 80067D94-80067E78 .text initStartPos__8daShip_cFPC4cXyzs */
|
|
void daShip_c::initStartPos(const cXyz* pos, short rotY) {
|
|
current.pos = *pos;
|
|
old.pos = *pos;
|
|
shape_angle.y = rotY;
|
|
current.angle.y = shape_angle.y;
|
|
offStateFlg(daSFLG_UNK10_e);
|
|
gravity = -2.5f;
|
|
|
|
mWaveL.remove();
|
|
mWaveR.remove();
|
|
mSplash.remove();
|
|
mTrack.remove();
|
|
mRipple.end();
|
|
m1984.end();
|
|
m1998.end();
|
|
m19AC.end();
|
|
m19C0.end();
|
|
}
|