HDB: Change the type of _cineAbortFunc

This commit is contained in:
Nipun Garg 2019-06-18 20:40:47 +05:30 committed by Eugene Sandulenko
parent 337f057fd4
commit 59625b49c6
3 changed files with 4 additions and 4 deletions

View File

@ -127,7 +127,7 @@ void AI::processCines() {
}
}
void AI::cineStart(bool abortable, char *abortFunc) {
void AI::cineStart(bool abortable, const char *abortFunc) {
_cineAbortable = abortable;
_cineAborted = false;
_cineAbortFunc = abortFunc;

View File

@ -89,7 +89,7 @@ public:
// Cinematic Functions
void processCines();
void cineStart(bool abortable, char *abortFunc);
void cineStart(bool abortable, const char *abortFunc);
void cineSetCamera(int x, int y);
void cineResetCamera();
void cineMoveCamera(int x, int y, int speed);
@ -104,7 +104,7 @@ private:
// Cinematics Variables
bool _cineAbortable;
bool _cineAborted;
char *_cineAbortFunc;
const char *_cineAbortFunc;
bool _cineActive;
bool _playerLock;
bool _cameraLock;

View File

@ -70,7 +70,7 @@ bool LuaScript::init() {
static int cineStart(lua_State *L) {
double abortable = lua_tonumber(L, 1);
char *abortFunc = (char *)lua_tostring(L, 2);
const char *abortFunc = lua_tostring(L, 2);
g_hdb->_lua->checkParameters("cineStart", 2);