mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-25 20:02:40 +01:00
Implement 02f6 02f7
This commit is contained in:
parent
11e90c61e5
commit
c16f565136
@ -8500,9 +8500,7 @@ void opcode_02f5(const ScriptArguments& args, const ScriptObject object, const S
|
||||
@arg xOffset X offset
|
||||
*/
|
||||
void opcode_02f6(const ScriptArguments& args, const ScriptFloat angle, ScriptFloat& xOffset) {
|
||||
RW_UNIMPLEMENTED_OPCODE(0x02f6);
|
||||
RW_UNUSED(angle);
|
||||
RW_UNUSED(xOffset);
|
||||
xOffset = glm::sin(glm::radians(angle));
|
||||
RW_UNUSED(args);
|
||||
}
|
||||
|
||||
@ -8514,9 +8512,7 @@ void opcode_02f6(const ScriptArguments& args, const ScriptFloat angle, ScriptFlo
|
||||
@arg yOffset Y offset
|
||||
*/
|
||||
void opcode_02f7(const ScriptArguments& args, const ScriptFloat angle, ScriptFloat& yOffset) {
|
||||
RW_UNIMPLEMENTED_OPCODE(0x02f7);
|
||||
RW_UNUSED(angle);
|
||||
RW_UNUSED(yOffset);
|
||||
yOffset = glm::cos(glm::radians(angle));
|
||||
RW_UNUSED(args);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user