You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
393 B
29 lines
393 B
|
8 years ago
|
#include "test_utils.h"
|
||
|
|
|
||
|
|
#include "../types.h"
|
||
|
|
|
||
|
|
void test_init_common()
|
||
|
|
{
|
||
|
|
init_archives();
|
||
|
|
|
||
|
|
InitHash();
|
||
|
|
diablo_init_screen();
|
||
|
|
|
||
|
|
InitLightTable();
|
||
|
|
|
||
|
|
gdwNormalMsgSize = 512;
|
||
|
|
|
||
|
|
gbMaxPlayers = 1;
|
||
|
|
|
||
|
|
light4flag = 0; // VALGRIND
|
||
|
|
}
|
||
|
|
|
||
|
|
void test_set_seeds(int baseSeed)
|
||
|
|
{
|
||
|
|
SetRndSeed(baseSeed);
|
||
|
|
for (int i = 0; i < 17; i++) {
|
||
|
|
glSeedTbl[i] = GetRndSeed();
|
||
|
|
gnLevelTypeTbl[i] = InitNewSeed(i);
|
||
|
|
}
|
||
|
|
}
|