only load sounds when necessary

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2918 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2008-10-11 06:21:34 +00:00
parent 2973424463
commit e898434f8d
4 changed files with 56 additions and 25 deletions
+4
View File
@@ -179,6 +179,10 @@ entity *newentity(int x, int y, int z, char *what, int v1, int v2, int v3, int v
switch(type)
{
case SOUND:
preloadmapsound(e);
break;
case LIGHT:
if(v1>64) v1 = 64;
if(!v1) e.attr1 = 16;