Implement/match various small LegoAnimPresenter functions (#846)

* Implement/match various small LegoAnimPresenter functions

* Fix location of anim function

* fix
This commit is contained in:
Christian Semmler
2024-04-24 09:51:28 -04:00
committed by GitHub
parent f898462d17
commit 410824bd0f
12 changed files with 71 additions and 26 deletions

View File

@@ -1,7 +1,7 @@
#include "legoanimactor.h"
#include "define.h"
#include "legoanimpresenter.h"
#include "legolocomotionanimpresenter.h"
#include "legoworld.h"
#include "misc.h"
#include "mxutilities.h"
@@ -200,7 +200,8 @@ void LegoAnimActor::ParseAction(char* p_extra)
char* token = strtok(value, g_parseExtraTokens);
while (token) {
LegoAnimPresenter* presenter = (LegoAnimPresenter*) world->Find("LegoAnimPresenter", token);
LegoLocomotionAnimPresenter* presenter =
(LegoLocomotionAnimPresenter*) world->Find("LegoAnimPresenter", token);
if (presenter != NULL) {
token = strtok(NULL, g_parseExtraTokens);