- Arreglats un milló de warnings tontos (i alguno serio)
This commit is contained in:
@@ -23,7 +23,8 @@ namespace modules
|
||||
char *p = buffer;
|
||||
char *n = buffer;
|
||||
while (*n!=0) {
|
||||
while (*n!='\n') n++; *n=0;
|
||||
while (*n!='\n') n++;
|
||||
*n=0;
|
||||
gifs.push_back(p);
|
||||
p=++n;
|
||||
}
|
||||
@@ -39,7 +40,7 @@ namespace modules
|
||||
const int x = input::mouseX()/80;
|
||||
const int y = input::mouseY()/80;
|
||||
const int selected = x+y*6;
|
||||
if (selected < gifs.size())
|
||||
if (selected < (int)gifs.size())
|
||||
{
|
||||
actor::actor_t* act = actor::getSelected();
|
||||
strcpy(act->bmp, gifs[selected].c_str());
|
||||
@@ -54,18 +55,18 @@ namespace modules
|
||||
const int x = input::mouseX()/80;
|
||||
const int y = input::mouseY()/80;
|
||||
selected = x+y*6;
|
||||
if (selected >= gifs.size()) selected = -1;
|
||||
if (selected >= (int)gifs.size()) selected = -1;
|
||||
}
|
||||
|
||||
draw::cls(2);
|
||||
int bx = 0;
|
||||
int by = 0;
|
||||
for (int i=0; i<gifs.size(); ++i)
|
||||
for (int i=0; i<(int)gifs.size(); ++i)
|
||||
{
|
||||
draw::surface *surf = draw::getSurface(gifs[i].c_str());
|
||||
draw::setSource(surf);
|
||||
const float aspect = float(surf->w) / float(surf->h);
|
||||
const int width = 64.0f*aspect;
|
||||
//const float aspect = float(surf->w) / float(surf->h);
|
||||
//const int width = 64.0f*aspect;
|
||||
draw::draw(2+80*bx, 2+by*80, surf->w, surf->h, 0, 0, 0, 64, 64);
|
||||
draw::print(gifs[i].c_str(), 2+80*bx + 32 - (gifs[0].size()/2)*4, 70+by*80, LIGHT+WHITE, PAPER);
|
||||
bx++; if (bx>5) { bx=0; by++; }
|
||||
|
||||
Reference in New Issue
Block a user