Code doesn't compile with RESPAWN_HACK enabled on trunk

Bug #336367 reported by Morgan Jones on 2009-03-01
Affects Status Importance Assigned to Milestone
Armagetron Advanced
Status tracked in Trunk
Manuel Moos

Bug Description

I enabled RESPAWN_HACK on trunk and it didn't compile. After looking at the code, I figured out that someone passed an extra function parameter to sg_RespawnPlayer.

What it should look like: sg_RespawnPlayer(grid, &arena, p);
What it actually looks like: sg_RespawnPlayer(time, grid, &arena, p);

sg_RespawnPlayer is declared as: void sg_RespawnPlayer(eGrid *grid, gArena *arena, ePlayerNetID *p)

I don't see a REAL time in there. The variable time isn't even used in the entire function.

This is on line 2962 of gGame.cpp.

description: updated
Manuel Moos (z-man) wrote :

Yep, the time variable was removed. Adapted the hack.

Changed in armagetronad:
assignee: nobody → z-man
importance: Undecided → Wishlist
milestone: none → 0.3.2
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers