Search:

Search: Search took 1.00 seconds.

  1. Replies
    8
    Views
    3,954

    I'd say load the cvar on server load (don't...

    I'd say load the cvar on server load (don't update it runtime), let some c-code extract the stuff, store it in the 4 bytes of netadr_t and compare that run-time (4 byte compare for every getstatus...
  2. Replies
    8
    Views
    3,954

    You can take a look at...

    You can take a look at https://github.com/M-itch/libcod/blob/e58d6a01b11c911fbf886659b6ea67795776cf4a/libcod.cpp#L52

    Mostly self-explaining, you get a reference to the cvar and can just compare...
  3. Replies
    8
    Views
    3,954

    I wouldn't overcomplicate it, something like: ...

    I wouldn't overcomplicate it, something like:



    #include "stdio.h"
    #include "string.h"
    int main() {
    char *ips = "127.0.0.1 234.44.23.52 1.2.3.4";
    char *test1 = "1.2.3.4";
    char...
  4. Replies
    8
    Views
    76,792

    The segfault message points to this function: ...

    The segfault message points to this function:


    BOOL __cdecl BG_IsWeaponValid(int a1, int a2)
    {
    bool v2; // bl
    bool v3; // cl
    int v4; // eax
    BOOL result; // eax
Results 1 to 4 of 4