mirror of
https://github.com/isledecomp/isle-portable.git
synced 2025-09-22 03:22:35 -04:00
Use enum from LegoActor
to map between string and id (#1577)
This commit is contained in:
parent
f64af166c8
commit
e3fc6fd135
@ -1,6 +1,7 @@
|
||||
#include "legovariables.h"
|
||||
|
||||
#include "3dmanager/lego3dmanager.h"
|
||||
#include "legoactor.h"
|
||||
#include "legogamestate.h"
|
||||
#include "legonavcontroller.h"
|
||||
#include "legovideomanager.h"
|
||||
@ -157,18 +158,18 @@ void WhoAmIVariable::SetValue(const char* p_value)
|
||||
MxVariable::SetValue(p_value);
|
||||
|
||||
if (!strcmpi(p_value, g_papa)) {
|
||||
GameState()->SetActorId(3);
|
||||
GameState()->SetActorId(LegoActor::c_papa);
|
||||
}
|
||||
else if (!strcmpi(p_value, g_mama)) {
|
||||
GameState()->SetActorId(2);
|
||||
GameState()->SetActorId(LegoActor::c_mama);
|
||||
}
|
||||
else if (!strcmpi(p_value, g_pepper)) {
|
||||
GameState()->SetActorId(1);
|
||||
GameState()->SetActorId(LegoActor::c_pepper);
|
||||
}
|
||||
else if (!strcmpi(p_value, g_nick)) {
|
||||
GameState()->SetActorId(4);
|
||||
GameState()->SetActorId(LegoActor::c_nick);
|
||||
}
|
||||
else if (!strcmpi(p_value, g_laura)) {
|
||||
GameState()->SetActorId(5);
|
||||
GameState()->SetActorId(LegoActor::c_laura);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user