Where can I find the commit for getvariableofpc()

bWolfie

I'm the man
Messages
850
Points
0
Location
Alberta, Midgard
Github
bWolfie
Emulator
Hi, I want to know where I can find the commit for adding of getvariableofpc() script command. I am running old version of Herc (2016) and want to add this to my source.

 
Thanks! Works.

Now I have a second question for anybody who may know.

How come # variable is on the excluded list? Would there be issues if I removed it from here?

Code:
    switch (*name)
    {
    case '#':
    case '$':
    case '.':
    case '\'':
        ShowError("script:getvariableofpc: illegal scope (not pc variable)\n");
        script->reportdata(data);
        script_pushnil(st);
        st->state = END;
        return false;
    }
 
 Thanks! Works.

Now I have a second question for anybody who may know.

How come # variable is on the excluded list? Would there be issues if I removed it from here?

    switch (*name)
    {
    case '#':
    case '$':
    case '.':
    case '\'':
        ShowError("script:getvariableofpc: illegal scope (not pc variable)\n");
        script->reportdata(data);
        script_pushnil(st);
        st->state = END;
        return false;
    }
https://github.com/HerculesWS/Hercules/commit/03f416eda0b0d1aeef03516863e11916e75660cdIt was fixed later on.

 
Back
Top