Ignore:
Timestamp:
03/08/16 13:19:59 (9 years ago)
Author:
epyon
Message:
  • temporary Lua 5.1 hardcode
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lua/lua_aux.cc

    r395 r490  
    110110                        lua_Integer arg1 = luaL_checkinteger( L, 1 );
    111111                        if ( arg1 < 1 ) arg1 = 1;
    112                         lua_pushunsigned( L, nv::random::get().urange( 1, static_cast<nv::uint32>( arg1 ) ) );
     112                        nlua_pushunsigned( L, nv::random::get().urange( 1, static_cast<nv::uint32>( arg1 ) ) );
    113113                }
    114114                else
     
    125125static int nluaaux_math_randomseed( lua_State* L )
    126126{
    127         nv::random::get().set_seed( lua_tounsigned( L, 1 ) );
     127        nv::random::get().set_seed( nlua_tounsigned( L, 1 ) );
    128128        return 0;
    129129}
Note: See TracChangeset for help on using the changeset viewer.