ACF: Reduce computer hog levels in missions 2 and 6.
They were way too high, especially in mission 2.
Mission 2:
Weaklings: level 5 → level 1 (except Brainiac)
Stronglings: (real) level 4 → level 2
Brainiac: level 1 → level 5 (because he's special)
Looks like all levels were just flipped.
Mission 5:
First enemy team: level 5 → level 3
Reinforcements: level 5 → level 4
The high skill level punishes player mistakes too much.
#include "lua.h"
#include "physfs.h"
#include "physfscompat.h"
#define BUFSIZE 1024
void *physfsReaderBuffer;
PHYSFS_DECL const char * physfsReader(lua_State *L, PHYSFS_File *f, size_t *size)
{
if(PHYSFS_eof(f))
{
return NULL;
}
else
{
*size = PHYSFS_readBytes(f, physfsReaderBuffer, BUFSIZE);
if(*size == 0)
return NULL;
else
return physfsReaderBuffer;
}
}
PHYSFS_DECL void physfsReaderSetBuffer(void *buffer)
{
physfsReaderBuffer = buffer;
}