Changeset 728


Ignore:
Timestamp:
Jul 2, 2014, 11:17:03 AM (8 years ago)
Author:
Sam Hocevar
Message:

misc: improve type safety here and there.

Location:
abuse/branches/lol/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • abuse/branches/lol/src/common.h

    r687 r728  
    2121// Lol Engine
    2222//
    23 #include "core.h"
     23#include <lol/main.h>
    2424using namespace lol;
    2525
  • abuse/branches/lol/src/dev.cpp

    r724 r728  
    13521352            wh += th;
    13531353        }
    1354         widgets << new AButton(vec2(wl, owh - 20), DEV_AI_OK, cache.img(dev_ok));
     1354        widgets << new AButton(ivec2(wl, owh - 20), DEV_AI_OK, cache.img(dev_ok));
    13551355    }
    13561356    else
  • abuse/branches/lol/src/light.cpp

    r724 r728  
    309309      ivec3 rgb = (ivec3)pal->GetColor(i);
    310310      rgb = clamp(ivec3(rgb.r / 2, 255 - rgb.g - 30, rgb.b * 3 / 5 + 50), 0, 255);
    311       *c = pal->FindClosest(rgb);
     311      *c = pal->FindClosest(u8vec3(rgb));
    312312    }
    313313    for (i=0; i<256; i++)
  • abuse/branches/lol/src/netcfg.cpp

    r724 r728  
    291291
    292292    AWidgetList sb;
    293     sb << new AButton(vec2(bx, by), NET_SERVER, ok);
     293    sb << new AButton(ivec2(bx, by), NET_SERVER, ok);
    294294
    295295    InputManager inm(main_screen, sb);
Note: See TracChangeset for help on using the changeset viewer.