ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/common/living.C
(Generate patch)

Comparing deliantra/server/common/living.C (file contents):
Revision 1.95 by root, Wed Dec 31 17:35:37 2008 UTC vs.
Revision 1.97 by elmex, Fri Aug 28 22:19:38 2009 UTC

1327 1327
1328 speed = 1.f + speed_bonus[stats.Dex]; 1328 speed = 1.f + speed_bonus[stats.Dex];
1329 1329
1330 if (settings.search_items && contr->search_str[0]) 1330 if (settings.search_items && contr->search_str[0])
1331 speed -= 1; 1331 speed -= 1;
1332
1333 if (attacktype == 0)
1334 attacktype = arch->attacktype;
1335 } /* End if player */ 1332 } /* End if player */
1336 1333
1337 if (added_speed >= 0) 1334 if (added_speed >= 0)
1338 speed += added_speed / 10.f; 1335 speed += added_speed / 10.f;
1339 else /* Something wrong here...: */ 1336 else /* Something wrong here...: */
1416 } 1413 }
1417 1414
1418 // update the mapspace, if we are on a map 1415 // update the mapspace, if we are on a map
1419 if (!flag [FLAG_REMOVED] && map) 1416 if (!flag [FLAG_REMOVED] && map)
1420 map->at (x, y).flags_ = 0; 1417 map->at (x, y).flags_ = 0;
1418}
1419
1420void
1421object::set_glow_radius (sint8 rad)
1422{
1423 glow_radius = rad;
1424
1425 if (is_on_map ())
1426 update_all_los (map, x, y);
1427 else if (object *env = outer_env ())
1428 {
1429 env->update_stats ();
1430
1431 if (env->is_on_map ())
1432 update_all_los (env->map, env->x, env->y);
1433 }
1421} 1434}
1422 1435
1423/* 1436/*
1424 * Returns true if the given player is a legal class. 1437 * Returns true if the given player is a legal class.
1425 * The function to add and remove class-bonuses to the stats doesn't 1438 * The function to add and remove class-bonuses to the stats doesn't

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines