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

Comparing deliantra/server/server/player.C (file contents):
Revision 1.284 by root, Mon May 2 16:55:38 2011 UTC vs.
Revision 1.286 by root, Wed May 4 19:04:45 2011 UTC

2017} 2017}
2018 2018
2019bool 2019bool
2020move_player (object *op, int dir) 2020move_player (object *op, int dir)
2021{ 2021{
2022 if (!op->map || op->map->in_memory != MAP_ACTIVE) 2022 if (!op->map || op->map->state != MAP_ACTIVE)
2023 return 0; 2023 return 0;
2024 2024
2025 /* Sanity check: make sure dir is valid */ 2025 /* Sanity check: make sure dir is valid */
2026 if (dir < 0 || dir > 8) 2026 if (dir < 0 || dir > 8)
2027 { 2027 {
2183 op->invisible = 1000; 2183 op->invisible = 1000;
2184 /* the socket code flashes the player visible/invisible 2184 /* the socket code flashes the player visible/invisible
2185 * depending on the value of invisible, so we need to 2185 * depending on the value of invisible, so we need to
2186 * alternate it here for it to work correctly. 2186 * alternate it here for it to work correctly.
2187 */ 2187 */
2188 if (pticks & 2) 2188 if (server_tick & 2)
2189 op->invisible--; 2189 op->invisible--;
2190 } 2190 }
2191 else if (op->invisible && !(op->flag [FLAG_MAKE_INVIS])) 2191 else if (op->invisible && !(op->flag [FLAG_MAKE_INVIS]))
2192 { 2192 {
2193 if (!op->invisible--) 2193 if (!op->invisible--)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines